What is a comment?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 7

What is a comment??

10th Nov 2016, 7:42 PM
erfan
18 Respuestas
+ 10
The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
11th Nov 2016, 1:41 PM
Nouman Danish
Nouman Danish - avatar
+ 7
a comment is a small text that you write on your code to make it more clear. Notice that it is only informative and it has no effect on the code itself
10th Nov 2016, 9:30 PM
dachiny ewekengha
dachiny ewekengha - avatar
+ 4
to document your code, you should make comments in your code. it makes it easier to understand your scripting.
10th Nov 2016, 7:48 PM
jmey
+ 4
And its represented by <!--text goes here --> comments keep the computer from reading whats inside and getting "confused". Hope I was helpful to you :)
10th Nov 2016, 9:32 PM
Aquarius
Aquarius - avatar
+ 3
Comments are very Important in HTML because to understand your code and remember that what are you do next or pre.
13th Feb 2017, 10:41 AM
BBBB Ghh GgBB
+ 1
tnx
10th Nov 2016, 7:53 PM
erfan
+ 1
comment is a txt that we include in our code because whenever you read your code the comment is helpful to understand that what you have write in your code and comments are not executable... comments are used for user understanding
11th Nov 2016, 3:34 PM
AMITKUMAR PRAJAPATI
AMITKUMAR PRAJAPATI - avatar
+ 1
Comment is a text in your code to make it easier to read ir to under stand which doesent appear in your output 😊
11th Nov 2016, 5:16 PM
Man Ray
Man Ray - avatar
+ 1
Comments are explanation of scripts or tag that programmer use for itself or others. They don't affect programs.
12th Nov 2016, 5:26 AM
Mohan Chalurkar
+ 1
comment is what are you think. your put in <!--this is comment--> delete "this is comment" and put what are you think .for example <html> <head></head> <body> <!--this is my first paragraph and my comment--> <p> hy. how are you, are you okay. I hope i can help you</p> <!--sorry about my english--> </body> </html>
21st Nov 2016, 12:37 PM
lucky boy
lucky boy - avatar
+ 1
small text one write to easen understanding
10th Feb 2017, 2:30 PM
Moses Ouma
Moses Ouma - avatar
+ 1
A comment makes it easy for a code inspector to understand what is happening
27th Jun 2017, 9:48 AM
Allan
0
A comment is a stuff that won't appear on your web page. You use it for better readability of the code. In HTML , the comment is typed between <!-- --> for eg : <!-- This is a comment --> In the above line , the content 'This is a comment' won't appear on the webpage.
14th Nov 2016, 1:04 AM
Akshay Kunder
Akshay Kunder - avatar
0
A comment is a text describing what the element does, written by the coder to help a person who is trying to understand the code, understand it better.
18th Nov 2016, 4:08 PM
Allan
0
comment tag isn't displayed , it's only for the user's to understand your code.
8th Jan 2017, 6:09 AM
Kiran Gowda
Kiran Gowda - avatar
0
Comments are invisible in browser. It gives important information of your code to programmer's. Always write a brief description about your code in comments; it helps your team in better understanding of code. Comments are of 2 types - 1. Single Line & 2. Multiple Line (block comments)
17th Jan 2017, 4:28 PM
codeDEcode
codeDEcode - avatar
0
i am 13, but i learn php))) but you don't know what is a coment)) oh...
26th Jan 2017, 1:52 PM
Arsen HTML
0
what helps a reader understand his/her code ..(documentation of your code)
10th Jun 2019, 12:34 PM
Moses Ouma
Moses Ouma - avatar