{ A destination to learn coding }

Semantic Tags

Quote Tag

<q cite="url" > </q>

This tag is used to add short quotes in the website. The browsers will put " " around the quotes.

Example of a quote
Everyone should know how to programme a computer, because it teaches you how to think. - Steve Jobs

Example:

<p>
<q> Honesty is a very expensive gift. Do not expect it from cheap peopole.</q>
</p>
The output would be
Honesty is a very expensive gift. Do not expect it from cheap peopole.

Note: Although Em tag makes the text italic and Strong tag makes the text bold, these tags should not be used for formatting the text.


Blockquote

<blockquote cite="#" > </blockquote>

This tag is used to display a section which is quoted from another source.
Browser will indent the blockquote elements.

<p>
A normal paragraph without any indentation
</p>

<blockquote cite="http://www.salilnaik.com/Top3ProgrammingWebsites.html" >
<p> 
According to the research carried by Aspiring Minds, 
"Lack of adequate knowledge to build a logically correct, 
maintainable code is the key reason for low employability."
</p>
</blockquote>
The output would be

A normal paragraph without any indentation

According to the research carried by Aspiring Minds, "Lack of adequate knowledge to build a logically correct, maintainable code is the key reason for low employability."



The cite attribute

The cite attribute is used to give citations to the quotes.

learn css