# HTML Comments

# **HTML Comments**

**👉** HTML comments are not displayed in the browser, but they can help document your HTML source code.

# **👉** HTML Comment Tag

- You can add comments to your HTML source by using the following syntax:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666972480620/0WBemS5zW.png align="left")

# **👉** Hide Content

- Comments can be used to hide content.
- This can be helpful if you hide content temporarily:

**👉** Example➖
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666972499051/ZhQeeKsaM.png align="left")


# **👉** Hide Inline Content

- Comments can be used to hide parts in the middle of the HTML code.

**👉** Example➖
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666972518565/JuFXl_kq6.png align="left")

-----------------------------------------------------------------------------------------------
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666336375150/5HqI8zNVh.png align="left")> 
Download our HTML & CSS Visual Treat! ebook Here: 
[Click here](https://codemarch.gumroad.com/l/hxazr)
