Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Number of Class names

    Howdy! I'm getting back into design mode and testing a framework called 960 grid. It calls for the use of standardized class names to style the elements of a page. I would also like to use micro-format class names such as "author or "org". That's all well and good until I get into using javascript on particular class of elements that I may want to give the user the option to show or hide. Then I would have to add yet another class name. Is it semantically valid to use more than two class names?

    Thanks in advance.

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,372
    Thanks
    32
    Thanked 286 Times in 280 Posts
    Quote Originally Posted by TravelTech View Post
    Is it semantically valid to use more than two class names?
    Unless microformats have changed things (I'm not familiar with them), class names have no semantic meaning beyond what the author ascribes to them. For example, you could use a class name "content" and it would be as meaningful as "Hello.World" to any machine reading your document; that is, there would be no additional meaning derived from these class names.

    As for a limit, there is no limit to the number of class names you can use and I can't think of any reason why there would be.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •