What does <! - - comment - - > do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does <! - - comment - - > do?

I still don't get it. Can someone explain it more?

22nd Sep 2018, 8:54 PM
Deven Alexandro William
1 Answer
+ 1
It simply does nothing, it is to make code easier to read. Example: <svg height="100" width="100"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> Sorry, your browser does not support inline SVG. </svg> <! -- draws a red circle with black outline-->
22nd Sep 2018, 8:59 PM
CodeMStr
CodeMStr - avatar