is it good idea to remember html tags in css classes and Ids?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-04-17T10:42:10Z Indexed on 2010/04/17 10:43 UTC
Read the original article Hit count: 129

Filed under:
|
|

If we keep tag name within selectors.

For example:

#divMainContentBody { … }

.spanImportant { … }

This minimizes the need to switch between your stylesheet and your markup, since the ID and class already tells you what element type it is referring to.

© Stack Overflow or respective owner

Related posts about css

Related posts about semantic-markup