HOME | PHP Tutorial | CSS
facebook icon
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>
<title>Title of button action</title>

<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>


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

Tutorial html
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

3196. How to create HTML link without underline, html tutorial
How to create HTML link without underline html tutorial

2118. HTML Tutorial - Comments into HTML codes
Commenting the html codes

2639. Frames : Creating a Frameset - HTML Tutorial
HTML frames - HTML tutorial

2628. Forms : Hidden Field - HTML Tutorial
HTML forms - HTML tutorial

3230. HTML div class container, html tutorial
HTML div class container html tutorial

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 button action - How to create a HTML button action, size