304 North Cardinal St.
Dorchester Center, MA 02124

Work Hours
Monday to Friday: 7AM - 7PM
Weekend: 10AM - 5PM

Html comment presentation

HTML comment tag

In the world of web development, HTML comment play an essential role in code readability.

HTML comments offer a discreet way to document your code. By surrounding them with <!-- and --> tags, they are not interpreted by browsers. This allowing you to explain how your code works, its specifics, and its purpose.

<!DOCTYPE html>
		<h1>My article</h1>
		<!-- Start of my article -->
			<p>Lorem ipsum</p>

Result in our browser:

Html comment not displayYou can also comment multiple lines like this:

First line
Second line

However, it’s crucial not to disclose sensitive information in your comments because they can be inspected by examining the source code. To address this issue, other programming languages like PHP or C# are necessary.

Html comment source code

Leave a Reply

Your email address will not be published. Required fields are marked *