HTML Quotation and Citation

HTML Quotation and Citation
  • HTML contains several elements for defining text with a special meaning.
HTML Quotation and Citation Elements
  • Quotation and Citation elements were designed to display special types of text.
  • <q>
  • <bdo>
  • <abbr>
  • <cite>
  • <address>
  • <blockquote>
HTML <q> Elements
  • The HTML <q> short quotation, Browsers normally insert quotation marks around the quotation.

<p>Mahatma Ghandi quotes: <q>Happiness is when what you think, what you say, and what you do are in harmony.</q></p>

Output:

Mahatma Ghandi quotes: Happiness is when what you think, what you say, and what you do are in harmony.

HTML <bdo> for Bi-Directional Override
  • <bdo> stands for Bi-Directional Override.The HTML <bdo> tag is used to override the current text direction.
  • Example

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

Output:

This text will be written from right to left