When a class attribute is not going to be used more than once, then an id attribute is the way to go. This helps ensure that unique styles are not being overridden since they are the most specific of CSS selectors available to you.
<!-- if brushes is not going to be used more than once, an ID is the appropriate selector of choice -->
<div class="brushes"></div>
<div id="brushes"></div>
I think i used the class an ad id attributes in the Broadway project. I only used the id attribute to style the copy right logo. I used classes to style the font size and weight.
When a
class
attribute is not going to be used more than once, then anid
attribute is the way to go. This helps ensure that unique styles are not being overridden since they are the most specific of CSS selectors available to you.