javascript - Can't nest links in html5? -


in xhtml nest lists, close tag begin new before closing tag. technique makes list structure clear when rendered without css , it's convenient structure applying js to.

today come against problem nesting links in html5 document:

<header>    <nav>        <a href="#">a link</a>        <a href="#">a link            <ul>                <li><a href="#">nested link</a></li>                <li><a href="#">nested link</a></li>                <li><a href="#">nested link</a></li>            </ul>        </a>    </nav> </header> 

which doesn't work. nested list nested in tag.

so technique used regularly in xhtml doesn't work in html5. question do in situation want create flyout menu? there technique can use in html5 make easy in xhtml? know can create flyout menu without nested links liked conciseness of old method.

build menu structure in nested lists, , have first element in every list link. works fine , can make right in css.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -