Skip to content

Commit db78232

Browse files
committed
Styling Hyperlinks
1 parent 3b844fc commit db78232

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ <h1>📘 The Code Magazine</h1>
2525
<a href="#">Flexbox</a>
2626
<a href="#">CSS Grid</a>
2727
</nav>
28-
<p>Test Paragraph</p>
2928
</header>
3029

3130
<article>
@@ -88,8 +87,8 @@ <h3>What is HTML?</h3>
8887
<a
8988
href="https://developer.mozilla.org/en-US/docs/Web/HTML"
9089
target="_blank"
91-
>MDN Web Docs</a
92-
>.
90+
>MDN Web Docs.</a
91+
>
9392
</p>
9493

9594
<h3>Why should you learn HTML?</h3>

starter/03-CSS-Fundamentals/style.css

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,29 @@ li:last-child {
9191
}
9292

9393
li:nth-child(even) {
94+
/* color: red; */
95+
}
96+
/* Misconeption it doesn't work */
97+
article p:first-child {
9498
color: red;
9599
}
96100

97-
article p:last-child {
98-
color: red;
101+
a:link {
102+
color: #1098ad;
103+
text-decoration: none;
104+
}
105+
106+
a:visited {
107+
color: #1098ad;
108+
text-transform: uppercase;
109+
}
110+
111+
a:hover {
112+
font-weight: bold;
113+
text-decoration: underline wavy magenta;
114+
}
115+
116+
a:active {
117+
font-style: italic;
118+
background-color: cyan;
99119
}

0 commit comments

Comments
 (0)