Comment tag in HTML
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
4.5 ★ | 2 Vote
You should read it
May be interested
- Tags in HTMLtags used to drop rows in the same paragraph, like the enter key.
- Abbr tag in HTMLtags are used to describe an acronym.
- Div tag in HTMLtags are used to define a section or a region in html text.
- Tag aside in HTMLtags define content outside the main content.
- CSS color coding, standard color code in website designowning standard css color coding, you will be more confident when designing, web programming, because color is an indispensable part in the internet world. in this article, tipsmake.com would like to introduce you to the most beautiful and popular color codes, along with hex codes for your convenience.
- Block and inline elements in HTMLeach element in html has a default display value, depending on which element it is.