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

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



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>
Updated on: 2020-01-27T07:27:04+05:30

762 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements