How can i use <!-- this is a comment --> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

How can i use <!-- this is a comment --> ?

What is it

9th Mar 2019, 12:07 PM
Achraf Falah
Achraf Falah - avatar
11 Answers
+ 35
You just use it. Just write something between start and endind tag
14th Apr 2019, 9:59 AM
Sławek J.
+ 8
You can use it by type <!--Achraf Falah -->. To understand & edit the code or statement(Achraf Flash) in future.
9th Mar 2019, 12:48 PM
Shreyansh Tiwari
Shreyansh Tiwari - avatar
+ 7
Achraf Falah We need it as a backup plan like https://code.sololearn.com/WpfczOVtEPSG/?ref=app And my other codes.
9th Mar 2019, 1:11 PM
Shreyansh Tiwari
Shreyansh Tiwari - avatar
+ 3
It's a note to yourself and other coders reading the code.
19th Apr 2019, 10:27 PM
Sonic
Sonic - avatar
+ 1
You can use comment tag for viewers.
29th Apr 2019, 1:05 AM
Kaustuv Anand
Kaustuv Anand - avatar
0
to comment your HTML code. either to clarify your code's purpose or to disable a portion of your code.
9th Mar 2019, 12:42 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
You you can use this comment in html. <!-- comment -->  Write well structured and readable code, and then use comments.
16th Mar 2019, 6:13 PM
MAHESH TRIPATHI
MAHESH TRIPATHI - avatar
0
Comments come either in block form or as single lines. Single-line comments (informally, C++ style), start with // and continue until the end of the line. If the last character in a comment line is a \ the comment will continue in the next line. Multi-line comments (informally, C style), start with /* and end with */ .
18th Mar 2019, 9:39 AM
deepak sharma
deepak sharma - avatar
0
Para tener el contenido organizando con espacios y comentarios
13th Apr 2019, 2:44 PM
Ane Stesya
Ane Stesya - avatar
0
How can I complete this third question <! - - This is a comment When I complet it then the result gave me wrong..
29th Apr 2019, 1:48 PM
Hindi Poem
Hindi Poem - avatar
- 2
Shreyansh Tiwari why we need to unsderstand & édit the code
9th Mar 2019, 12:57 PM
Achraf Falah
Achraf Falah - avatar