For example:
<ul>
<a href="http://google.com"><li id="someId"></li></a>
...
...
...
</ul>
It’s a quick hack for the existing css styling that I have. I am wondering if I should refactor it and place the a tags inside.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only element allowed as a child of a UL is an LI. You have to wrap the anchor around the contents of the LI, not the LI itself.
Even with HTML5’s newfangled rules allowing anchors around block level elements, you still have to put the anchor within the LI itself.