Tag Info

New answers tagged

1

The data-* attributes are defined for (X)HTML5 only. The Microdata attributes (itemscope, itemprop, …) are defined for (X)HTML5 only. So when you switch to (X)HTML5, you can use both of these. If you want to keep using XHTML 1.0, you could use class instead of data-* attributes, and RDFa instead of Microdata (which requires adjusting your DOCTYPE).



Top 50 recent answers are included