Let's add comments and safely write characters that have a special meaning in HTML.
- An HTML comment starts with <!-- and ends with -->. - Comments are useful for notes to developers and for explaining unusual sections of markup. - Comments are still present in the page source, so never put passwords, private keys, or secrets inside them. - Some characters have special meaning in HTML markup and should be written with character references when you want them to appear as text. - < displays a less-than sign, while > displays a greater-than sign. - & displays an ampersand. - " can represent a quotation mark, and other named or numeric character references exist for additional symbols. - Do not replace every normal character with an entity when plain text is already correct; use character references when they are needed.
The practical goal is to know when you are writing HTML markup and when you are asking the browser to display a character as text.
