Slide 1

Slide 1 text

un-semantic CSS from 960.gs to Bootstrap

Slide 2

Slide 2 text

I am @minipai I use css framework.

Slide 3

Slide 3 text

2008 960 grid system

Slide 4

Slide 4 text

It’s Not Semantic!

Slide 5

Slide 5 text

http://coding.smashingmagazine.com/2011/08/23/ the-semantic-grid-system-page-layout-for-tomorrow/ SAMPLE

Slide 6

Slide 6 text

2011 Twitter Bootstrap

Slide 7

Slide 7 text

It’s Not Semantic!

Slide 8

Slide 8 text

http://ruby.bvision.com/blog/ please-stop-embedding-bootstrap-classes-in-your-html SAMPLE

Slide 9

Slide 9 text

Semantic What?

Slide 10

Slide 10 text

http://boagworld.com/dev/semantic-code-what-why-how/

Slide 11

Slide 11 text

This is the page title

This is a heading

not semantic semantic html

Slide 12

Slide 12 text

https://speakerdeck.com/nathansmith/960-grid-system

Slide 13

Slide 13 text

Semantic HTML ≠ Semantic CSS

Slide 14

Slide 14 text

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.

Slide 15

Slide 15 text

It’s Best Practice!

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

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.

Slide 18

Slide 18 text

Semantic CSS It’s a coding style It’s not the BEST Time to move on

Slide 19

Slide 19 text

Raise of un-semantic CSS BEM http://bem.info/ OOCSS https://github.com/stubbornella/oocss/wiki SMACSS https://smacss.com/

Slide 20

Slide 20 text

How to learn 1. Use Bootstrap without guilt. 2. Read OOCSS or SMACSS. 3. Built your own component. 4. Be happy!

Slide 21

Slide 21 text

Thank You.