Comments
Comments in HTML are essentially notes for developers. A comment starts with <!-- and ends with -->. The browser ignores everything in between, so comments are not visible on the web page. They are usually used to describe the code:
<!-- This is the section where the user registers -->
<div>
...
</div>Another use of comments is for testing code: we can temporarily hide an element by putting it inside a comment.
<!-- <p>Hidden code</p> -->Instructions
- 1
Above the
divelement with theBreedsheading, write a comment with the textThe most common breeds.