$menuParameters = array(
'echo' => false,
'items_wrap' => '<nav>%3$s</nav>',
);
echo strip_tags(wp_nav_menu( $menuParameters ), '<a><nav>' );
Result:
<nav>
<a href="...">...</a>
<a href="...">...</a>
<a href="...">...</a>
</nav>
Source: Remove LI Elements From Output of wp_nav_menu
HTML5 wp_nav_menu: The Snippets Story
This is how you build a HTML5-navigation without lists in WordPress. I slightly changed the code I found on CSS-Tricks. Had to post this after todays reading of “Navigation in Lists: To Be or Not To Be” by Chris Coyier.
