I use <! comment > and it still works. Why? Samething with <hr> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I use <! comment > and it still works. Why? Samething with <hr>

26th Aug 2016, 11:39 AM
Thanhlong Tran
Thanhlong Tran - avatar
2 Answers
+ 1
The comment tag <!-- comment here --> will not be read by the browser. It is used to document any particular comments you have in your code. Notice the exclamation mark ! in the beginning of the tag, this lets the browser know that this tag isnt just an ordinary tag. For the hr tag try <hr/>. Hope this helps!!
26th Aug 2016, 1:16 PM
Kris
- 1
for comment ... use <!-- your comment --> and it will not be shown on the browser ... we use </hr> without <hr> (only closing tag)
26th Aug 2016, 8:34 PM
SuperTnx
SuperTnx - avatar