Commenting

Topic

Commenting

Topic Progress:

Comments are for you, the programmer, to help understand your own code. They are very useful for very big and confusing web pages, and for helping others understand your work.

Comment tags aren’t like other tags in HTML, they look like this <!– –>. Anything inside middle of that will not appear on the website. Here is an example of a web page with a comment.

<!DOCTYPE html>
<html>
	<head>
		<title>Comments</title>
	</head>
	<body>
		<h1>Comments</h1>
		<!--this is a comment, it will not be displayed-->
		<p>This is a paragraph, it will be displayed.</p>
	</body>
</html>

Try it yourself!

@

Not recently active