AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

HTML comments with example


<< Previous Page
HTML link tag
Next Page >>
HTML form action

HTML Tutorial » HTML comments with example

HTML comment one line and multiple lines is a piece of code which is ignored by any web browser.

You can add comment text into your HTML code, especially in complex documents, to give some explanations to the html document.

Comments help you and others to understand your code.

HTML Comment Tags

Syntax:

<!-- Add here your comments -->
Note: We have exclamation "!" in the start tag <!-- , but not in the end tag -->
Comments are not displayed by the browser, but it can give you explanations source code

 

HTML comment one line

With comment single line code block you can place notifications and reminders in your HTML code:

Example single lines
<!DOCTYPE html>
<html>
<head>
<title>comment single line code block </title>

</head>
<body>
<h1>comment single line code block</h1>
<!-- This is a comment <h1> tag is a title -->

<p>Here we have a paragraph.</p>

<!-- <p> tag is a paragraph -->

</body>
</html>
Note: don't forget to close comment line with the --> tag.

 

HTML comment multiple lines code block

Example of HTML comment multiple lines of code

Example
<!DOCTYPE html>
<html>
<head>
<title>Example of HTML comment multiple lines of code</title>

</head>

<body>
<h1>Example of HTML comment multiple lines of code </h1>
<!-- <h1> tag is a title of your page
and do not display <img border="2" src="nice_toen.jpg" alt="nice town">,
so this is a code of multilines comment -->

</body>
</html>

Tags: HTML comment multiple lines, out, tag, code, box, block, shortcut, section, single line, html comment shortcut vscode, system, form, box template, shortcut, section

<< Previous Page
HTML link tag
Next Page >>
HTML form action

 

html comments: tag, section, box, in code, start and end with what, best practices, box account, multiline, in react

HTML comment one line, html comments multiple lines, html comment text, box, not working, in javascript, shortcut, multiple lines, simple lines, mdn
HTML comment one line and multiple lines - html tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...