When you use the WordPress menu system and wp_nav_menu()
function in your theme, menus will by default get wrapped in a <DIV>
container. Since wp_nav_menu()
displays list items, this ends up outputting invalid HTML. A <DIV>
is not allowed as a direct descendant of a <UL>
element.