HTML Comments
By Saket Bhatnagar••Beginner to Intermediate
comments
- 1Comments are used to document the source code.
- 2Comments are not displayed on the browser.
- 3They are useful for providing explanations for yourself or other developers who may work on the code in the future.
- 4Comments are not for the user.
- 5HTML comments are written within the <!-- and --> tags.
- 6Anything between <!-- Comment --> tags will be ignored by the browser and will not be displayed on the web page.