Comments are used to hide content.
To create hidden comments in HTML, we addtag and end it with-- >. Whatever comes inside this tag it is hidden. These comments allow us to easily understand the code.
Comments can be viewed as comments to yourself, and can also allow others to understand the code, while hiding the HTML code so that the browser will not display it on the web page.
The following is the syntax for hiding comments in HTML.
The following is a sample program to hide comments in HTML.
DLF stands for Delhi Land and Finance
Following is another example program to hide comments in HTML.
Delhi is the capital of India
We use inline comment tag inside the
tag. To hide the content of the paragraph.
The Chinese translation ofThe following is a sample program to hide comments in HTML, using inline comment tags.
DLF stands for Delhi Land and Finance
The above is the detailed content of How to create hidden comments in HTML?. For more information, please follow other related articles on the PHP Chinese website!