HTML – Comments
Comments are some text or code written in your code to give an explanation about the code and it will not visible to the user but it improves the code readability.
These comments help in documentation and debugging purpose. Comments can be possible in two ways:-
1. Single line Comment
We can add comments using <!-- HTML code or comment text here -- >. So, if we write anything between these tags, it will not be displayed over the browser.
2. Multi-line Comment
We can also add comments in multiple lines at a time. In multiline comment, we can give any description about the code or any debugging comment.
Supporting Browsers
Element |
|||||
Marquee |
Yes |
Yes |
Yes |
Yes |
Yes |