HTML Comments

By: Prof. Fazal Rehman Shamil
Last modified on April 13th, 2020

What are the comments?

Comments are just like verbs or phrases or some kind of representation of someone opinion.

Why do we comment the code?

We comment on the code to increase the readability and understandability of the code. The code has no effect on the output of the program. 

Example of comments in HTML:

  <!−− this is comment, you can put comment here  −−>
<html>

<body>

<p>welcome to T4Tutorials.com</p>

<!−− p is used for paragraph   −−>

</body>

</html>

 

Video Lecture