HTML Comment Tags Explain
You can add comments to your HTML source by using the following syntax.
Comments are not displayed by the browser, but they can help document your HTML.
With comments you can place notifications and reminders in your HTML.
Comments are not displayed by the browser, but they can help document your HTML.
With comments you can place notifications and reminders in your HTML.
Html Code:
<!DOCTYPE html>
<html>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>
Html Code Result:
This is a paragraph.
Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors.
Html Code:
<!DOCTYPE html>
<html>
<body>
<!-- Do not display this at the moment
<img border="0" src="pic_mountain.jpg" alt="Mountain">
-->
</body>
</html>
Post a Comment