What is Microdata Vocabulary in HTML5?

JavascriptWeb DevelopmentFront End Scripts

To define microdata vocabulary you need a namespace URL that points to a working web page. For example, http://data-vocabulary.org/Person can be used as the namespace for a personal microdata vocabulary with the following named properties −

  • name − Person name as a simple string
  • Photo − A URL to a picture of the person.
  • URL − A website belonging to the person.

Using about properties a person microdata could be as follows:

      <div itemscope>
         <section itemscope itemtype = "http://data-vocabulary.org/Person">
            <h1 itemprop = "name">Gopal K Varma</h1>
               <img itemprop = "photo" src = "http://www.tutorialspoint.com/green/images/logo.png">
            <a itemprop = "url" href = "#">Site</a>
Updated on 29-Jan-2020 07:07:00