I currently have html code that wraps my li tags in my a tags like so:
<ul>
<a href='#'><li>Home</li></a>
<a href='#><li>Gallery</li></a>
</ul>
It works perfectly, but Is this semantically correct? is there any negative implication of writing my html like this?
答案 0 :(得分:-1)
你可以尝试这个:
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Gallery</a></li>
</ul>