xxxxxxxxxx
<!-- This is an HTML comment -->
<!-- You can add comments anywhere in your HTML code for documentation or to temporarily disable a section of code -->
<!DOCTYPE html>
<html>
<head>
<title>HTML Comments</title>
</head>
<body>
<!-- This is a comment in the body section -->
<h1>Welcome to my website</h1>
<!--
<p>This paragraph is commented out</p>
<p>It won't be displayed in the browser</p>
-->
<p>This is a regular paragraph.</p>
<!--
<p>You can comment out multiple lines too.</p>
<p>These lines won't be rendered.</p>
-->
</body>
</html>
xxxxxxxxxx
<!--This is a comment in html.-->
<!--You can put comments enywhere! It does not care if it is mid peice of
code in a peice of code! You must put the ending arrows in or it will
think everything is a comment! Note you can comment over multiple lines.
Use a ! at the start arrow, this may not make sence as the rest of
html uses tags where ! is at the ends.-->
xxxxxxxxxx
<!-- This is a comment in html -->
<!--
This is a
multiline
comment in
HTML!
-->
xxxxxxxxxx
<!-- HTML comment
any line -->
/* CSS comment
any line */
// Javascript comment single line
/* Javascript comment
multiline */
xxxxxxxxxx
<!-- short comment -->
<!-- loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong comment -->
<!--
multiple
line
comment
-->
<!-- Comments won't be shown on the page or effect the code but will remain in website code. Useful for commenting what is the code for -->
xxxxxxxxxx
<!-- This is the first comment, it won't be shown on a page -->
<h1>And this is a header. It will be fully visible.</h1>
<!--
Multiline comment.
You can place a lot of information there.
Maybe even a whole book.
-->