0% completed
HTML provides tags to handle quoted content effectively. Quoted text can appear as inline quotes, block quotes, or even cite a specific source. These tags enhance the readability and semantic meaning of the content by clearly marking quoted text or references.
Here are the commonly used tags for quotations:
Inline Quotes (<q>
):
<q>Cited text</q>
Block Quotes (<blockquote>
):
<blockquote>Cited block text</blockquote>
Citation (<cite>
):
<cite>Source Title</cite>
Abbreviation for Quotes (<abbr>
):
<abbr title="World Health Organization">WHO</abbr>
The <q>
tag is used for short quotes within a paragraph. The browser automatically adds quotation marks around the content.
Explanation:
<q>
tag wraps the quoted text, "Hard work pays off".The <blockquote>
tag is used for longer quotations. It creates a block-level element, often styled with indentation by default.
Explanation:
<blockquote>
tag encloses the quote.The <cite>
tag is used to indicate the source of a quotation or reference a work. It is typically styled in italics by browsers.
Explanation:
<cite>
tag marks "Franklin D. Roosevelt" as the source of the quote.The <abbr>
tag defines abbreviations and provides their full form using the title
attribute.
Explanation:
<abbr>
tag wraps "WHO" and provides its full form in the title
attribute......
.....
.....