A quotation is a group of words taken from another source.
The HTML has various elements like <q>, <blockquote>, <abbr>, <cite>, <address> and <bdo> for defining different types of quotes and citations.
Let's discuss them in detail to understand their proper use in HTML.
The HTML <q> element is used to define a short quotation.
It means when we want to show a quotation on a web page that is short in length, we will use the HTML <q> element.
The quotation is written between the start tag <q> and the end tag </q>.
While displaying the page, web browsers automatically insert quotation marks around the text that is written within <q> and </q> tags.
The HTML <blockquote> element also defines a quotation, but the browser does not insert quotation marks. Instead, it indents the quotation, i.e. it adds space before the start of the quotation.
Though it is not mandatory, the <blockquote>, as the name suggests, is generally used for a block of text.
The quotation is written between the opening tag <blockquote> and the closing tag </blockquote>.
Click 'Result on Editor' to view the difference between the <q> and <blockquote> elements.
We use the HTML <abbr> element to display abbreviations and acronyms on web pages.
An abbreviation is a shortened form of a word, while an acronym is the initials of a word or name.
An abbreviation or acronym is written between the start tag <abbr> and the end tag </abbr>.
While processing, the translation systems and search engines identify text written in <abbr> as an abbreviation and treat them differently than the other text on the web page.
We can use the HTML title attribute on abbreviations to hint at their complete names. See the example below.
To display the title of a creative work, HTML uses <cite> element.
The title is written between the start tag <cite> and the end tag </cite>.
Translation systems identify the content of the <cite> element and differentiate it from the other text on the page. And hence during the translation, the title is not translated.
While displaying the web page browsers italicize the text within the <cite> and <cite> tags.
As the name indicates, this HTML element defines the contact information of someone on a web page.
Contact information can be anything from the physical location to email address, mobile number etc.
The browser automatically adds a line break before and after the <address> element.
The content of the <address> element is displayed in italic.
The <bdo> element is used to change the text direction of the content. BDO is an acronym for Bi-Directional Override.
The text whose direction is to be changed is written between the <bdo> and </bdo> tags.
Tags | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<q> | Yes | Yes | Yes | Yes | Yes |
<blockquote> | Yes | Yes | Yes | Yes | Yes |
<cite> | Yes | Yes | Yes | Yes | Yes |
<abbr> | Yes | Yes | Yes | Yes | Yes |
<address> | Yes | Yes | Yes | Yes | Yes |
<bdo> | Yes | Yes | Yes | Yes | Yes |
1. HTML Tutorial |
2. Introduction to HTML |
3. Basic HTML Page |
4. HTML Editors |
5. Web Browser |
6. HTML History |
7. Basic HTML Tags |
8. HTML Elements |
9. HTML Attributes |
10. HTML Headings |
11. HTML Paragraphs |
12. HTML Text Formatting |
13. HTML Styles |
14. HTML Comment |
15. HTML Quotation |
16. HTML Colors |
17. HTML RGB Colors |
18. HTML HEX Colors |
19. HTML HSL Color |
20. HTML CSS |
21. HTML Links |
22. HTML Link Colors |
23. Link within Page |
24. HTML Images |
25. HTML Background Image |
26. HTML Image Map |
27. HTML Picture Element |
28. HTML Favicon |
29. HTML Table |
30. HTML Table Border |
31. HTML Table Size |