CSS: An Overview
Color commentary

Great! You're really getting the hang of this.

While it's important to get all your syntax down correctly, it's also a good idea to write comments as you go along. Good comments will help remind you why you did something a certain way (or will help someone else out if they're reading your code without you there to explain it).

As you've seen, HTML comments look like this:

<!--I'm a comment!-->

CSS comments, on the other hand, look like this:

/*I'm a comment!*/

Remember: the computer doesn't look at comments when figuring out what your HTML and CSS should do, but writing good comments is a good habit you want to pick up!


See the CSS we've added for the p selector in stylesheet.css? Comment it out! (That is, put /* before the p in that tab and */ after the closing }.

View Preview