HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

HTML comment one line and multiple lines - how to create comment in HTML

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.

Example of HTML comment text one line and multiple lines

Any content in HTML is placed between <!-- ... --> tags, where this text will be treated as comment and will be ignored by any browser.

Example 1:
<!DOCTYPE html>
<html>
<head>
<title>Title of button action</title>
</head>
<body>

<a href="http://www.agernic.com" target="_blank" style="color:#C30; text-decoration: none;">Tutorial html</a>
<!-- Here put your comment about your HTML cod -->

<a href="http://agernic.com/facebook.jpg" target="_blank"><img src="http://agernic.com/facebook.jpg" style="width:342px;height:72px;border:0;" alt="facebook"></a>
<!-- Some details about the html code.
This is a multiline comment,
and it can span through
as many as lines you like.
Here put your comment about your HTML cod -->


<a href="https://www.google.com/" target="_blank" style="text-decoration: none; padding:8px; color:#090; font-size:18px">Google Search</a>

</body>
</html>

The html cod above will display this HTML result without comment text:

Tutorial html
facebook
Google Search
Note: As I said Comments are not displayed by the browser, but this can help you with source code.

HTML comment one line, html comments multiple lines, html comment text, box HTML comment one line and multiple lines - html tutorial

3206. HTML Introduction, html tutorial
HTML Introduction html tutorial
https://www.agernic.com/html-tutorial/html-introduction.html

3196. How to create HTML link without underline, html tutorial
How to create HTML link without underline html tutorial
https://www.agernic.com/html-tutorial/How-to-create-html-link-without-underline.html

2118. HTML Tutorial - Comments into HTML codes
Commenting the html codes
https://tutorialehtml.com/en/html-tutorial-comments/

2639. Frames : Creating a Frameset - HTML Tutorial
HTML frames - HTML tutorial
http://www.echoecho.com/htmlframes02.htm

2628. Forms : Hidden Field - HTML Tutorial
HTML forms - HTML tutorial
http://www.echoecho.com/htmlforms07.htm

3230. HTML div class container, html tutorial
HTML div class container html tutorial
https://www.agernic.com/html-tutorial/container-html-div-class.html

Your add here
PHP similar_text() function

PHP str_repeat() function

PHP strtolower() function

PHP implode() function

PHP lcfirst() function

PHP ucwords() function

PHP empty() Function

PHP isset() Function

PHP strstr() function

PHP ucfirst() function

PHP rtrim() function

PHP strcmp() function

PHP explode() function

PHP str_replace() function

PHP substr() function

PHP wordwrap() function

HTML Text Align
HTML Color Text
HTML Font Color
HTML Colors
HTML List
HTML button action - How to create a HTML button action, size