Javatpoint Logo
Javatpoint Logo

How to Comment in Html?

The comments in the Html document are the texts of Html which are not interpreted by the Internet Browsers.

If we want to create the single line comment or multiple line comments in the Html document then we have to follow the steps which are given below. Using these steps, we can easily create the comments in the Html file which helps for describing the code of that file.

Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to create the text as a comment.

Step 2: Now, type the text which we want to create as a comment for the Html page. So, type the text or code between the tags which are shown in the following block:

Step 3: Now, we have to give the text in Html file. And, then save the Html file or code.

Test it Now

Step 4: Now, run the code and then we will see the output in the browser. The output does not include the text which is written within a comment in the Html file or code. The following screenshot shows the output of above Html code:

How to Comment in Html





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA