HTML Elements

HTML Quotations And Citation Elements: The HTML Quotation and Citation Elements helps the user to insert quotations in different styles using the tags available. We have different types of tags. They are as  follows:

HTML Quotations and Citation Elements

Tags Description
<q> Defines a Short inline quotation
<abbr> Defines an abbreviation or an acronym
<address> Defines contact information for an author
<bdo> Defines the text direction
<cite> Defines the title of a work
<blockquote> Defines a section that is quoted from another source

HTML Short Quotations

The HTML <p> element defines a short quotation. Browsers usually insert quotation marks around the <q> element.

Example:

<!DOCTYPE html>
<html>
<body>
<p>Browsers usually insert quotation marks around the q element.</p>
<p>WWF's goal is to :<q> Build a future where people live in harmony with nature.</q></p>
</body>
</html>

Output:

Paragraph Tag

Browsers usually insert quotation marks around the q element.

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

HTML Long Quotations

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

Example:

<!DOCTYPE html>
<html>
<body>
<p>Browsers usually indent blockquote elements.</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>

</body>
</html>

Output:

Paragraph Tag

Browsers usually indent blockquote elements.

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.

HTML Abbreviations

The HTML <abbr> element defines an abbreviation or an acronym. Marking abbreviations can give useful information to browsers, translation systems, and search engines.

Example:

<!DOCTYPE html>
<html>
<body>
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<p>Marking up abbreviations can give useful information to browsers, translation systems and search-engines.</p>
</body>
</html>

Output:

The WHO was founded in 1948.

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

HTML <address> For Contact Information

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.

Example:

<!DOCTYPE html>
<html>
<body>
<p>The HTML address element defines contact information (author/owner) of a document or article.</p>
<address>
Written by John Doe.<br> 
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
</body>
</html>

Output:

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

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

 HTML <cite> FOR WORK TITLE

The HTML <cite> element defines the title of a work.Browsers usually display <cite> elements in italic.

Example:

<!DOCTYPE html>
<html>
<body>
<p>The HTML cite element defines the title of a work.</p>
<p>Browsers usually display cite elements in italic.</p>
<img src="w3professors.png" width="220" height="277" alt="W3Professors">
<p><cite>The Scream</cite> by Edvard Munch. Painted in 1893.</p>
</body>
</html>

HTML <bdo> For Bio-Directional Override

The HTML <bdo> element defines bi-directional override. The <bdo> element is used to override the current text direction.

Example:

<!DOCTYPE html>
<html>
<body>
<p>If your browser supports bi-directional override (bdo), the next line will be written from right to left (rtl):</p>
<bdo dir="rtl">This line will be written from right to left</bdo>
</body>
</html>

Difference between HTML elements and tags

HTML elements vs Tags

An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag. The following is a paragraph element.

Tags are used to mark up the start and end of an HTML element.

Element Example:

<p>This is the content of the paragraph element.</p>

Tag Example:

<p></p>