I am adding an anchor tag inside ul and inside anchor tag I am adding li. But when I tested this on html validator it gives me error. Is there a proper way to achieve this?<
The whole li will be clickable if you style up the li a, like this:
li
li a
ul li a { float: left; margin: 5px; padding: 5px; background: red; }