HTML Comments

HTML Comments

HTML comment can be done by following statement <!-- Write your comments here -->.

Please keep in mind that written comments do not display by browser. It provides help to understand the HTML source code by another developer.

General Syntax For Writing the HTML Comments:

<!-- Write your comments here -->

To comment HTML element,use following syntax <!-- Write your comments here -->

HTML Comment Example

Source Code

Try it now

Note:HTML code is commented by following syntax <!-- HTML Code --> .

Online Test / Quiz