Comments in HTML 5

Comments are used to identify sections of code or text that are to be ignored by HTML parsers. There are various reasons for adding comments to HTML code, for example:

Any text, scripts or HTML code within properly coded comments will be ignored. However, if comments are coded where not expected, such as in text content, what looks like comments is sometimes treated as text, which will not be ignored.