Skip to main content

How to add comments in HTML?


Comments

            A sentence which describe your code identity or comments can be used for different purpose also such as documentation purpose or remainder purpose also.

Types of Comments:

1. Single line comment
2. Multi line Comment
3. Conditional Comment 

Syntax:

<!—HTML Comment Syntax-- >


Example of Single Line Comment:

<!—Heading of the website -- >
<H1> www.htmlrun.com</H1>
<!—Start body contain-- >
<p> this is your body </p>
<!—End of Code -- >

Example of Multi line Comments:

<!—Heading for website
With the tagline -- >
<H1> www.htmlrun.com </H1>

Example of Conditional Comments:

<!--[if IE 6]>
        Comment for IE 6  
<![endif]-->

Comments

  1. Nice post. Speaking about technologies these days. I know that virtual data room pricing is a good substitute for old-fashioned way of storing the information.

    ReplyDelete

Post a Comment

Popular posts from this blog

Use of HTML Quotation, Blockquote and Cite.

1. Quotation            In HTML for quotation mark you need to use <q>--</q> tag. The browser can understand the meaning of  <q> tag.
Syantax: <q> Sentence for quotation </q>
Example:<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> HTML Quotation</TITLE>
<HEAD>
<BODY>

    <H1> Example of HTML quotation mark</H1>

    <H2><p><q>A complete tutorial of HTML with htmlrun.com</q>
    </p></H2>

</BODY>
</HTML>


Output:


2. Blockquote.        In HTML for blockquote you have to use <blockquote> tag. To make a block of any paragraph with just like a justify alignment in word.

Syntax:<blockquote> Large number of sentences </blockquote>
Example:<!DOCTYPE HTML>
<HTML>
<HEAD>
    <TITLE> HTML BLOCKQUOTE</TITLE>
</HEAD>
<BODY>
<H1>Example of Blockquote</H1>

<BLOCKQUOTE>
A www.htmlrun.com is a HTML tutorial website and
a blog. Usi…