Search This Blog

Monday, 30 December 2013

1.8 HTML Comments

Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.
Comments are written like this:
Example:

<!DOCTYPE html>
<html>
<body>
<!--This comment will not be displayed-->
<p>This is a regular paragraph</p>
</body>
</html>
Note: There is an exclamation point after the opening bracket, but not before the closing bracket.

No comments:

Post a Comment