Question Detail

Consecutive hyphens did not terminate a comment. -- is not permitted inside a comment, but e.g. - - is.

4 years ago Views 820 Visit Post Reply

Why I get this error? How can fix that?

</ul></div></div><!-- end #main-nav -->

Thread Reply


- 3 years ago

If your doctype is correct, there should be no problem. I've tested

<!DOCTYPE html>
<title>Title of the document</title>

<div><ul><li>li</li></ul></div><!-- end #main-nav -->


with no warnings and errors. There is something wrong somewhere else. (Maybe <<>> or missing closing tag />)