Consecutive hyphens did not terminate a comment. -- is not permitted inside a comment, but e.g. - - is.
Why I get this error? How can fix that?
</ul></div></div><!-- end #main-nav -->
- 3 years ago
If your doctype is correct, there should be no problem. I've tested
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <div><ul><li>li</li></ul></div><!-- end #main-nav --> </body> </html>
with no warnings and errors. There is something wrong somewhere else. (Maybe
>> or missing closing tag