What are HTML comments ? The function of comments is to help programmers mark the purpose of the code. After a while, when you look at the code you wrote, you can quickly remember the purpose of this code.
HTML comments are not only convenient for programmers to recall the purpose of the previous code, but also help other programmers quickly understand the functions of your program, and facilitate the development of web page code by multiple people.
HTML Comment syntax:
<!--Comment text -->
For example: The code below shows how to insert comment in an html web page. we insert comment in line 10 and line 14
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML Comments - coding180.com</title>
</head>
<body>
<!--This is a comment - begin-->
<div>
<p>Coding180 is focused on creating high quality programming
tutorials and resources.</p>
</div>
<!--This is a comment - end-->
</body>
</html>
//= htmlentities($post["body"]); ?>