Why should i use the comment tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Why should i use the comment tag?

10th Jan 2017, 10:52 AM
Dado2000
Dado2000 - avatar
17 Answers
+ 21
You can also comment some parts of your html code to see how it works without these parts (if you don't want to delete them).
10th Jan 2017, 11:29 AM
Igor Makarsky
Igor Makarsky - avatar
+ 8
use <html> <body> <form> type your comment<br> <textarea rows="40" cols="60"> </textarea> </html> </body> </form>
26th Jan 2017, 4:53 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 8
to reember what you​ have done
6th Apr 2017, 1:51 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 7
it help for other develoers or any other person when looks to your source to understand what was the code's intetion
14th Feb 2017, 10:10 AM
Bukuru Henry
Bukuru Henry - avatar
+ 6
it's very easy
26th Jan 2017, 4:53 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
Comments are used in a programming language or in script language remind programmers of what tricky things they just did with the code, or to warn later generations of programmers stuck with maintaining some complex code.
16th Jan 2017, 12:53 PM
Roshan Bagde
Roshan Bagde - avatar
+ 3
As your code continues to grow, you can use comment tags to help identify parts and keep things organized. I've also used it as placeholders as I think through and start to assemble a function/method. You can also use it to block off a header section at the top of your code where you list the name, date, author, version, changes... All kinds great ways to use comment tags.
13th Jan 2017, 3:19 AM
Jeremiah
Jeremiah - avatar
+ 2
it guide another programmer and remind you of what you've done in coding an html file.
1st Feb 2017, 3:01 PM
Imad Khan
Imad Khan - avatar
+ 2
if you go through any web pages and right click you get inspect element there any one can read your code then to make it understand to them we use it
28th Feb 2017, 7:39 AM
Mahesh Gonella
Mahesh Gonella - avatar
+ 2
the comment tag is used to remember the code related to the different components in your webpage
28th Feb 2017, 7:17 PM
Isaiah M. Towns
Isaiah M. Towns - avatar
+ 1
to make you understand ur code if your code is so messy
10th Jan 2017, 10:54 AM
caleb deng
caleb deng - avatar
+ 1
if you share your code with group or something
11th Jan 2017, 3:08 PM
Mohamed Ahmed Salem
+ 1
to mąkę your video izier to read
24th Jan 2017, 7:55 AM
Barosz Sójka
Barosz Sójka - avatar
+ 1
if you share your code with group or someone and want them to read your comment while editing the text
28th Jan 2017, 10:00 AM
Reda Noaimy
Reda Noaimy - avatar
+ 1
The comentary is used for explain or summarizes certain sections of the code, so that the programmer understands any part of the program without necessarily having to read all the lines of code before edit it.
15th Feb 2017, 10:10 PM
José António Tavares Monteiro
José António Tavares Monteiro - avatar
0
What is the comment ? Until now i don't know what's that
6th Apr 2017, 1:50 PM
arsyad9
arsyad9 - avatar
- 3
shameel
12th Jan 2017, 5:48 AM
shameel