Use of Comment and Quotation Tag in HTML

0
287
html comments

Use of Comment tag in HTML

HTML Comments

An HTML comment begins with <!–– and the comment closes with ––>. HTML comments are visible to anyone that views the page source code but are not rendered when the HTML document is rendered by a browser.

<!DOCTYPE html> 
<html>
 <head>
   <title>Direction Text Example</title>
 </head>
<body>
  <!-- You will not be able to see this text. -->
   <p>You can even comment out things in <!-- the middle of --> a sentence.</p> 
  <!-- Or you can comment out a large number of lines. --> 
</body> 
</html>

Use of Quotation Tag in HTML

Quoting Text

The HTML <blockquote> element defines a section that is quoted from another source.

Text inside a <blockquote> element is usually indented from the left and right edges of the surrounding text and sometimes uses an italicized font.

<blockquote>According to scientists, the bumblebee's body is too heavy and 
its wing span too small. Aerodynamically, the bumblebee cannot fly. 
But the bumblebee doesn't know that and it keeps flying. 
When you don't know your limitations, you go out and surprise yourself. 
In hindsight, you wonder if you had any limitations. 
The only limitations a person has are those that are self- imposed. 
Don't let education put limitations on you.</blockquote>

Short Quotation

The HTML <q> element defines a short quotation.

If you write anything within <q>……</> element, is shown in quotation mark

<p>Ramish is in India, <q>I think I am wrong</q>.</p>

Abbreviation Text

You can abbreviate a text by putting it inside opening <abbr> and closing </abbr> tags. If present, the title attribute must contain this full description and nothing else.

<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

Address Text

If you write anything within <address>……</address> element, is shown in address

<address>New Delhi, India</address>

Citations Text

If you write anything within <cite>……</cite> element, is shown in italicized text by default

p>This HTML tutorial is derived from <cite>W3 Standard for HTML</cite>.</p>

Direction Text

The <bdo>……</bdo> element stands for Bi-Directional Override. If you write anything within <bdo>……</bdo> element, is shown in override the current text direction.

<p><bdo dir="rtl">This text will be written from right to left</bdo></p>

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here