Upgrade to Pro — share decks privately, control downloads, hide ads and more …

un-semantic CSS

un-semantic CSS

From 960.gs to OOCSS, it's time to move on to the era of "un-semantic CSS".

Talked on HappyDesigner Mini 分享會 #1. http://registrano.com/events/happydesigner-mini-1

Art Pai

June 13, 2013
Tweet

More Decks by Art Pai

Other Decks in Programming

Transcript

  1. Semantic CSS http://www.w3.org/TR/html5/dom.html#classes There are no additional restrictions on the

    tokens authors can use in the class attribute, but authors are encouraged to use values that describe the nature of the content, rather than values that describe the desired presentation of the content.
  2. About HTML semantics and front-end architecture http://nicolasgallagher.com/about-html-semantics-front-end-architecture/ Despite the HTML5

    specification section on classes repeating the assumed “best practice” that… …authors are encouraged to use [class attribute] values that describe the nature of the content, rather than values that describe the desired presentation of the content. …there is no inherent reason to do this. In fact, it’s often a hindrance when working on large websites or applications.
  3. How to learn 1. Use Bootstrap without guilt. 2. Read

    OOCSS or SMACSS. 3. Built your own component. 4. Be happy!