Drupal core outputs menus like this:

<div id="main-menu" class="navigation">
  <h2>Main Menu Title</h2>
  <ul id="main-menu-links" class="links clearfix">
    <li>Link 1</li>
    <li>Link 2</li>
  </ul>
</div>

We want instead to be:

<nav id="main-menu">
  <h2>Main Menu Title</h2>
  <ul id="main-menu-links" class="links clearfix">
    <li>Link 1</li>
    <li>Link 2</li>
  </ul>
</div>

Only we should talk about the id and classes on <ul>. And about whether the title should be <h1> or <h2>.

Comments

amateescu’s picture

Project: HTML5 Tools » HTML5 Base
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » Markup

This should be discussed at the theme level.

JohnAlbin’s picture

theme_links() only outputs the H2 and the UL. The <div id="navigation"><div class="section"> comes from the page.tpl.php. Pretty straight-forward change on the theme.

amateescu’s picture

Status: Active » Closed (duplicate)