answersLogoWhite

0

What are HTML comments?

Updated: 8/11/2023
User Avatar

Wiki User

14y ago

Best Answer

Comments are used to give extra information to the person writing or updating the HTML, usually explaining what a piece of code does, or identifying a significant point in the document. Comments are not displayed on the webpage itself. They are only within the code. They are ignored by the browser. The concept of using comments comes from programming. Comments can also do other things, like get a piece of code to be ignored temporarily so that testing to see if there is a problem can be done. A comment is started by putting this <!-- and is finished by putting this --> with the comments in between them like this:

<!-- This will be ignored by the browser-->

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are HTML comments?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why do you write comments in HTML files how are comments written in HTML programs?

Comments are very important in a HTML code. They are started by &lt;!-- and ended by --!&gt;


How many types of comments are their in HTML?

Singular TAGS in HTML:Normally it considered tag only tag is the Singular Tag in Html.But tag is also can used as a Singular Tag. tag has dual functionality, means it can used as Paired Tag and also as Singular.For Example:if we use it as paired, it will work as we know already, but if we use this Tag using HTML like:dummy text dummy text dummy text dummy textNow it will produce the result as:dummy text dummy textdummy text dummy textThanks.Hammad Ahmad.Email: hammadahmadweb@aol.com


How do you write a comment tag on HTML document?

Adding a comment in HTML is very useful so that you can quickly see what a section of code is supposed to be doing. It also can be useful to define who wrote a piece of code when multiple people are on a project together. To create a comment line you start with the &lt; character followed by an exlamation mark and then two dashes. You then type your comment and close it off with two dashes and the &gt; character. See example below. &lt;!-- This is a comment line --&gt; You can also add more dashes at the beginning or in the middle with no ill effects. See example below. &lt;!-------- This is another --- comment line --&gt;


How does HTML helps programming students?

It is important to note that HTML is not a programming language. It is a markup language. However, it does have some similar characteristics, like that it is a file with a list of commands, it has rules, it allows comments and other things. It is easy to learn and can be useful to get people used to the basic concept of giving instructions to a computer in a file. However there are lots of fundamentals of programming that are not in HTML, as it is not a programming language. For serious programming courses, people would not be shown HTML as part of the training. They would start on an actual programming language to be shown the fundamentals of programming. Some programming can be linked into web pages, and so integrated with HTML and if people are going to be creating programs for the internet, then they would learn HTML.


What helps you create an HTML file by inserting HTML codes for you as you work?

Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.Special HTML editor programs, like Dreamweaver.

Related questions

Why do you write comments in HTML files how are comments written in HTML programs?

Comments are very important in a HTML code. They are started by &lt;!-- and ended by --!&gt;


Where is the HTML code for comments?

You don't need a html code for comments. You just post a comment, or post a comment and wait to see if the uploader approves it.


Written remarks in your HTML or CSS document which will not be displayed in the browser?

Comments are not displayed by the browser, but they can help document your HTML source code.


How does one hide MySpace comments?

To hide MySpace comments, one would use the edit profile option on the page. You can type, or copy and paste an HTML code into the box to hide the comments. If you aren't familiar with HTML programming, there are a number of websites where you can find the necessary codes. One such website is MySpaceGens.


Need comments of web designing?

Web designing is one of the popular fields today. It uses HTML and CSS to make it complete.


How many types of comments are their in HTML?

Singular TAGS in HTML:Normally it considered tag only tag is the Singular Tag in Html.But tag is also can used as a Singular Tag. tag has dual functionality, means it can used as Paired Tag and also as Singular.For Example:if we use it as paired, it will work as we know already, but if we use this Tag using HTML like:dummy text dummy text dummy text dummy textNow it will produce the result as:dummy text dummy textdummy text dummy textThanks.Hammad Ahmad.Email: hammadahmadweb@aol.com


What mark-up is used to insert comments in a CSS file?

In CSS you would use: /* to open the comment , and the reverse */ to close In HTML it is: &lt;!-- to open and --&gt; to close


How do you hide friends and comments on myspace 2.00?

You use a simple HTML code. simply go to ask.com and type it in and they will give you a code to post where you edit your profile.


How do you write a comment tag on HTML document?

Adding a comment in HTML is very useful so that you can quickly see what a section of code is supposed to be doing. It also can be useful to define who wrote a piece of code when multiple people are on a project together. To create a comment line you start with the &lt; character followed by an exlamation mark and then two dashes. You then type your comment and close it off with two dashes and the &gt; character. See example below. &lt;!-- This is a comment line --&gt; You can also add more dashes at the beginning or in the middle with no ill effects. See example below. &lt;!-------- This is another --- comment line --&gt;


What does HTML ignore?

Comments are ignored by the browser and are not displayed. If you want to make a note or a comment within your HTML document use the following HTML You can use it to mark off where a certain section of your page starts and ends so you can easily locate it to edit. for example (The browser will ignore this notation) The WikiAnswers website rocks. (The browser will ignore this notation)


What is the plural possessive of comments?

The plural possessive of &quot;comments&quot; is &quot;comments'.&quot;


How does HTML helps programming students?

It is important to note that HTML is not a programming language. It is a markup language. However, it does have some similar characteristics, like that it is a file with a list of commands, it has rules, it allows comments and other things. It is easy to learn and can be useful to get people used to the basic concept of giving instructions to a computer in a file. However there are lots of fundamentals of programming that are not in HTML, as it is not a programming language. For serious programming courses, people would not be shown HTML as part of the training. They would start on an actual programming language to be shown the fundamentals of programming. Some programming can be linked into web pages, and so integrated with HTML and if people are going to be creating programs for the internet, then they would learn HTML.