May 7, 201214 yr Hi I need some help with my HTML tags. I have created a website using a template and want it to be W3C compliant. When I run the W3C check it says: Line 234, Column 13: document type does not allow element "p" here; assuming missing "li" start-tag <p>Registered in England</p> ✉ Error Line 237, Column 13: end tag for "li" omitted, but OMITTAG NO was specified </ul> ✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". I am learning Html but do not understand why It does not like the paragrph tags?, I have tried removing them and just having the text but then I lose all of the formatting from the css. I have attached a jsfiddle jsfiddle and the website can be found at website
May 15, 201214 yr Use: <ul> <li><p> </p></li> </ul> Do not use (in this example, this is what you are doing): <ul> <p> </p> </ul> Nor (in this example, this is what some of the editors try to do where I work): <ul> <p><li> </li></p> </ul>
Create an account or sign in to comment