Comment tag in HTML
The comment tag is used to insert comments and comments in the code.
Definition and usage
Comment tags used to insert comments and comments in the code. These comments will not be displayed on the browser.
Using comments next to the code makes it easy to understand, control and fix errors for your work more quickly and conveniently. This tag is especially useful if you have lots of code and long code.
Browser support
There is no difference of this tag between HTML 4.01 and HTML5.
Structure
Structure a comment in an HTML file:
Note : There is an exclamation point (!) In the opening tag, but not in the closing tag.
For example
TipsMake.com
Knowledge - Experience - FAQ
Results returned:
TipsMake.com
Kiến thức -Kinh nghiệm - Hỏi đáp
Discover more
html comment tag learn html learn html5Share by
David Pac
Update 25 May 2019
You should read it
- Introduction to HTML
- 5 steps to learn a dynamic HTML web component profile
- List in HTML
- Basic examples of HTML
- Computer code element in HTML
- The Quiet Details That Make a Sports Betting Platform Feel Reliable
- Instructions on creating toy set images with ChatGPT AI
- How are AI agents changing the journalism industry?
- Tags in HTML
- Abbr tag in HTML
- Div tag in HTML