The following is the script for a site navigation:
Using the W3s Mark Up Validation Service it repetatively draws attention to the following Error example:-Code:<ul id="dropnav"> <li><a href="index.html">Home</a> <li><a href="about.html">About</a><ul> <li><a href="comfor.html">Community Forum</a></li> <li><a href="admincom.html">Administration Committee</a></li> <li><a href="repcom.html">Representative Committees</a></li> <li><a href="workgroup.html">Working Groups</a></li></ul> <li><a href="assets.html">Assets</a> <li><a>Issues</a><ul> <li><a href="list1.html">List 1</a></li> <li><a href="list2.html">List 2</a></li></ul> <li><a href="lapr.html">LAPR</a> <li><a href="contact.html">Contact</a></li> <li><a href="links.html">Links</a></li> </ul>
Error Line 34, Column 20: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li><a href="lapr.html">LAPR</a>
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
I am not getting the meaning of this message - is there a workaround to resolve the error?
Bookmarks