Question

I adding some Microdata in a page of a site. This site is standard html ,not html 5. I can add something like this without change heading of my pages?

 <div itemscope itemtype="http://data-vocabulary.org/Person">
  <h1 itemprop="name">Mark Pilgrim</h1>
  </div>
Was it helpful?

Solution

Microdata, which includes the itemscope and itemtype attributes is part of the HTML5 work so there's no standard doctype available for using microdata with earlier doctypes.

I think you have to change heading of your pages to HTML5. This is probably the best way forward.

But I also think that the consumers of the microdata are unlikely to care what doctype you are using.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top