...

Web Technologies - HTML5

Back to Course

Lesson Description


Lession - #589 HTML5 Microdata


Microdata may be a standardized way to offer extra semantics in your web pages.

Microdata enables you to define your own bespoken components and start embedding custom properties in your web pages. At a high level, microdata consists of a group of name-value pairs.

The groups are called items, and each name-value pair may be a property. things and properties are represented by regular elements.

Example

<html> 
   <head> 
      <meta charset = "UTF-8"> 
      <title> HTML5 Example< /title> 
	  
   </head> 
	
   </body> 
          <div itemscope>
         <p>My name is <span itemprop = "name">Ariba</span>.</p>
      </div>
      
      <div itemscope>
         <p>My name is <span itemprop = "name">Neeta</span>.</p>
      </div>
        
   </body> 
</html> 



Try it here