Browsing All posts tagged under »semantics«

The HTML class attribute: for styling purposes only?

August 2, 2011

0

Introduction Early specifications The www-style mailing list Later specifications Pulling it all together Conclusion Side note Introduction Cascading Style Sheets (CSS) has the HyperText Markup Language (HTML) language specific class selector. The CSS rule below applies to an HTML element which has a class attribute with the value name: *.name { color: gray; } Without […]

HTML5 Microdata and CSS

July 26, 2011

2

If you add both classes and microdata to your elements you may end up with duplicate metadata. To avoid this remove the classes and use the microdata in your CSS selectors.