Skip to content

Commit 7dfc376

Browse files
committed
Added first ID selector
1 parent ca48e91 commit 7dfc376

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wip/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>The Basic Language of the Web: HTML</h2>
3939
width="50"
4040
/>
4141

42-
<p>Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027</p>
42+
<p id="author">Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027</p>
4343

4444
<img
4545
src="img/post-img.jpg"

wip/03-CSS-Fundamentals/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ footer p {
3636
font-size: 16px;
3737
}
3838

39-
/*Example of nested descendant selector*/
40-
article header p {
39+
/*ID selector. Don't use this anymore either.*/
40+
#author {
4141
font-style: italic;
4242
}

0 commit comments

Comments
 (0)