What is the correct use of schema.org SiteNavigationElement in HTML?

JavascriptWeb DevelopmentFront End Scripts

The schema.org SiteNavigationElement extends WebPageElement. It is used to mark-up links that would make amazing contextual links.

<nav role = "navigation" itemscope itemtype = "http://schema.org/SiteNavigationElement">
<ul>
   <li>
      <a href = "https://example.com/" title = "Link to home page" itemprop = "url">
         <span itemprop="name">Home page</span>
      </a>
   </li>
   <li>
      <a href = "https://examplecom/demo" title="Link to demo page" itemprop = "url">
         <span itemprop = "name">My demo page</span>
      </a>
   </li>
</ul>
raja
Updated on 27-Jan-2020 07:27:04

Advertisements