What’s the difference between div#content and just using #content in a CSS stylesheet?

As the title suggests, I have always given my divs IDs and then in my stylesheet referenced selber.Zum the ID Example: HTML: CSS: # content (font-size: 1 5em;) But sometimes I see it: # content div (font-size: 1 5em;) I am curious what the difference is, and if you should use one kind over another.

Leave a Reply

Your email address will not be published.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>