HTML Quotations

<p>

The HTML <q> element defines a short quotation.

Browsers usually insert quotation marks around the <q> element.

HTML Code:

<p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q></p>

Result:

WWF's goal is to: Build a future where people live in harmony with nature.


<blockquote>

The HTML <blockquote> element defines a section that is quoted from another source.

Browsers usually indent <blockquote> elements.

HTML Code:

<p>Here is a quote from WWF's website:</p> <blockquote cite="http://www.worldwildlife.org/who/index.html"> For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. </blockquote>

Result:

Here is a quote from WWF's website:

For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

<abbr>

The HTML <abbr> element defines an abbreviation or an acronym.

Marking abbreviations can give useful information to browsers, translation systems and search-engines.

HTML Code:

<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

Result:

The WHO was founded in 1948.


<address>

The HTML <address> element defines contact information (author/owner) of a document or an article.

The <address> element is usually displayed in italic. Most browsers will add a line break before and after the element.

HTML Code:

<address> Written by John Doe.<br> Visit us at:<br> Example.com<br> Box 564, Disneyland<br> USA </address>

Result:

Written by John Doe.
Visit us at:
Example.com
Box 564, Disneyland
USA

<cite>

The HTML <cite> element defines the title of a work.

Browsers usually display <cite> elements in italic.

HTML Code:

<p><cite>The Scream</cite> by Edvard Munch. Painted in 1893.</p>

Result:

The Scream by Edvard Munch. Painted in 1893.


<bdo>

The HTML <bdo> element defines bi-directional override.

The <bdo> element is used to override the current text direction.

HTML Code:

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

Result:

This text will be written from right to left

This text will be written from right to left

HTML Index

References

  1. W3Schools

This page is only a summary of the material from W3Schools. Definitions, Examples and Codes are exclusive property of W3Schools.