How to add comment in HTML?

Query By: RITU VERMA

J

Jimmi

Before knowing how to add comments in HTML? first need to know "What are the comments in HTML?" An HTML comment tag is used when you need some description to understand the code for the coder and designers but you don't want to show that code to comments to the user in that condition you can use a comment tag because the browser does not read the commented lines of code.


If you are interested in exploring the brief details about how to add comments in HTML, types of comments in HTML, and many more then just click the links and read the full details or you can simply visit our Tutorical section where you can find the full tutories of HTML, CSS, HTML TAGS, JAVASCRIPT, JAVA, SQL, and more.


How to add comments in HTML?

Most HTML code editors (such as Sublime, Visual Studio, VS Code, Notepad++, Notepad, and more) have features in their header section that are used to comment on the code on the code page but in any case, you are not able to find that you just simply use mentioned SYNTAX to make that come commented.


Syntax to Comment the Code and Content on the HTML page

<!-- single line -->

<!-- 

   multiline

   comment code

-->

html comments
1 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)