Data and Semantik to css

howto:data2css,en

css-possibilities are great. But only if you can identify all elements, cascading or with class an id. Its very costly to ident every single element that could be changed by css.

If you identify the body-tag with a identifictional variable like sitename, namesroome etc. Every kind of content can bei identified.

<body class="ns_de page_impressum" >...

 
Further a link is not only identified by his position, also by his target.

<a href="/impressum.html" class="link_impressum" title="Das Impressum">Impressum</a>

 

Structur

  • sidetitel (sittitel is not useful;)
  • namesroom
  • categorys
  • requesting servername

 

Konflikte und Prefix

If you name e.g. namesrooms like othe fixed classes ( info vs. info) youget a collision. Using prefixes is useful (z.B. ns_, page_, d2c_, etc).

Implementierung

 


Google Search