Step 6: Change the text color of the first paragraph
by going to index.html, and adding an
id
attribute to
the first paragraph with the value firstParagraph. The opening tag
should look like:
<p id="firstParagraph">
Then go to style.css, and add the following at the bottom:
#firstParagraph {
color: pink;
}
Only the first paragraph should have a different color. ID values
cannot contain spaces, and if it's more than one word, the first
letter of every word should start with a capital letter, except for
the first word. This is called camel case. In CSS, use a
#
to style an element by its ID.