learn2kode.in

HTML Quotations

HTML provides special tags to represent quotations and citations in web pages. These tags help browsers and search engines understand that the text is a quote, citation, or a piece of creative work — adding both semantic meaning and accessibility to your content.

The <blockquote> Tag

The <blockquote> tag is used for long quotations — usually displayed as an indented block of text.

Syntax

<blockquote>
  This is a blockquote. It is used for longer quotations from another source.
</blockquote>

Output

This is a blockquote. It is used for longer quotations from another source.

The <q> Tag

  • The <q> tag defines a short inline quotation. Browsers usually insert quotation marks automatically around the text.

Example

<p>Walt Disney once said, <q>The way to get started is to quit talking and begin doing.</q></p>

Output

Walt Disney once said, The way to get started is to quit talking and begin doing.

The <cite> Tag

The <cite> tag is used to reference the title of a work — like a book, movie, website, or painting. Browsers usually display it in italic by default.

Example

<p><cite>The Great Gatsby</cite> was written by F. Scott Fitzgerald.</p>

Output

The Great Gatsby was written by F. Scott Fitzgerald.

The <abbr> Tag (for Abbreviations)

Although not strictly a quotation tag, <abbr> is often used when quoting or referencing abbreviated terms.

Example

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

Output

WHO was founded in 1948.

The <address> Tag

The <address> tag is used to define contact information (like author details or address of a quoted source).

Example

<address>
  Written by John Doe.<br>
  Visit us at: <a href="https://learn2kode.com">Learn2Kode</a><br>
  Vellore, India
</address>

Output

Written by John Doe.
Visit us at: Learn2Kode
Vellore, India