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 NowStep 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: Next TopicHow to Link CSS to Html |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India