Skip to main content Skip to course content Envision Tech Academy Logo

HTML Comments

Comments in HTML are used to add notes to your code that are not displayed in the web browser. They are useful for documenting your code, making notes to yourself or other developers, or temporarily removing code without deleting it.

Comments in HTML are written using the <!-- and --> tags. Anything between these tags is considered a comment and will not be displayed in the browser.

Example

Here is an example of how a comment would be coded:

<!-- This is a comment -->