html - Is it semantically incorrect to place <h2> tags between <li> tags? -
i planning this:
<ul class="menu"> <li><h2>contact</h2></li> <li>my email</li> <li>my phone</li> </ul>
is semantically incorrect (or bad practice?)
if answer yes, should instead?
<ul class="menu"> <li><strong>contact</strong></li> <li>my email</li> <li>my phone</li> </ul>
(i can't place heading tag, since there not divs group them):
<div id="branding"> <h1> <ul class="menu"> <ul class="menu"> <ul class="menu serif"> <ul id="lang"> </div>
is there particular reason put "contact" inside li
? seems it's header list rather part of list, i'd do:
<h2>contact</h2> <ul> <li>my email</li> <li>my phone</li> </ul>
Comments
Post a Comment