HTML

All Languages C CPP JAVA HTML CSS JAVASCRIPT PYTHON

Quotes In Html

HTML quotes are used to put a short quotation on your website. To do so, you need to use HTML q tag and HTML blockquote tag.

HTML q tag

HTML q tag is used to put small quotation. To do so, write your text within <q>.............</q> tag.

Example

<!DOCTYPE html>
<html>
<body>
<p> Great quote on love and life.</p>  
<Dr. Seuss once said : <q>Reality is finally better than your dreams.</q></p>  
</body>
</html>

output

Great quote on love and life.

Dr. Seuss once said : Reality is finally better than your dreams.

HTML blockquote tag

HTML blockquote tag is used to define a large quoted section. If you have a large quotation then put the entire text within <blockquote>.............</blockquote> tag.

Example

<!DOCTYPE html>
<html>
<body>
<p> Read this inspirational story.</p>  
<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>  
</body>
</html>

output

Read this inspirational story.

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.

HTML Tags which are used in Quotations and Citation

Tag Description
<abbr> It defines the abbreviation or an acronym.
<address> It is used to define the contact information of the document writer.
bdd It defines the direction of the text.
<blockquote> It is used to define a section that is quoted from another source.
<q> It is used to put the small quotations.
<cite> It defines the title of source from where quotation or work is taken.
<define> It is used to define a definition term.