How to create hidden comments in HTML?

WBOY
Release: 2023-08-31 15:05:06
forward
1339 people have browsed it

How to create hidden comments in HTML?

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.

grammar

The following is the syntax for hiding comments in HTML.

Copy after login
The Chinese translation of

Example

is:

Example

The following is a sample program to hide comments in HTML.

    

DLF stands for Delhi Land and Finance

Copy after login
The Chinese translation of

Example

is:

Example

Following is another example program to hide comments in HTML.

    

Delhi is the capital of India

Copy after login

We use inline comment tag inside the

tag. To hide the content of the paragraph.

The Chinese translation of

Example

is:

Example

The following is a sample program to hide comments in HTML, using inline comment tags.

    

DLF stands for Delhi Land and Finance

Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!