From the HTML 5 specification :
Comments must begin with the four-character sequence U + 003C LESS-THAN SIGN, U + 0021 EXCLUSIVE MARK, U + 002D HYPHEN-MINUS, U + 002D HYPHEN-MINUS ( <!-- ). After this sequence, a comment can have text with an additional restriction that the text should not start with one " > " (U + 003E) and not start with GIFE-MINUS U + 002D (-) after the " > " (U + 003E), and do not contain two consecutive characters U + 002D HYPHEN-MINUS ( -- ) , and do not end with the GIFEN-MINUS symbol U + 002D ( - ). Finally, the comment must be completed using the three-character sequence U + 002D HYPHEN-MINUS, U + 002D HYPHEN-MINUS, U + 003E MORE THAN A SIGN ( --> ).
To get rid of the error message. Stop making a mistake. Rewrite the piece of code with -- inside the comment.
source share