Id, please!


#1

What do I add to make the IDs???


#2

Pretty vague question, but let's just review...

<div id="one"></div>

The above is an HTML division element as it might appear in the source document, index.html, perhaps.

#one {

}

The above is a CSS selector rule for that element in the source document (from which the DOM is formed). Any properties we declare in this rule will affect only this division, since there can be only one element with an id="one" attribute in the document.


#3

thanks! I knew how to do the css version just not the html version.


#4

Remember the rule, there can be only one. If you find more sections of the page that share properties in common, consider how a class might help to resolve the duplication.