Best practice for referring to classes in CSS

Posted by Mark Szymanski on Stack Overflow See other posts from Stack Overflow or by Mark Szymanski
Published on 2010-06-02T23:18:06Z Indexed on 2010/06/02 23:24 UTC
Read the original article Hit count: 129

Filed under:
|
|

If you have an HTML page with a class in an element, for instance <div class="myClass"> would it be best to refer to it in the CSS as .myClass or div.myClass?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about html

Related posts about css