Sitemap Examples

From Microformats Wiki
Revision as of 16:33, 18 July 2020 by Aaronpk (talk | contribs) (Replace <entry-title> with {{DISPLAYTITLE:}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Per the microformats process this page documents common examples of HTML navigation mechanisms out of which we may want to construct a sitemap.xml.

HTML navigation mechanism examples

There would be no difference here really between websites and webapps, both use HTML elements for nav in the same way.

As per any decent POSH citizen the BBC's website uses a simple list element for navigation. The BBC admirably use very standard attributes.

<ul id="blq-nav-main">
  <li id="blq-nav-news">
    <a href="">News</a>

Apple use the same construct.

<ul id="globalnav" role="navigation">
  <li id="gn_store">
    <a href=""><span>Store</span></a>

Subjectively not so semantic in terms of markup.

<div id="userpanel">
  <a href="/extras">Extras</a>

Existing practices and patterns

While the semantic markup differs slightly between these different example mechanisms, and many others, a common theme is the use of the link element. We have always used the same for our own sites.