HTML comments must start with the four character sequence
<
- !
- hyphen-minus
- hyphen-minus
<!--
Following this sequence, the comment may have text, with the additional restriction that
-
the text must not start with a single
>
,
-
nor start with a hyphen-minus followed by a
>
character,
-
nor contain two consecutive hyphen-minus characters
-
nor end with a hyphen-minus character
Finally, the comment must be ended by the three character sequence
- hyphen-minus
- hyphen-minus
- >
- -->
// This is a JS comment
/* This is a JS comment */