HTML Introduction | HTML Text Elements | Quotation

There are two ways to express quotations in HTML.

  1. Short quotations
  2. Block quotations

Short quotations <q>

Short quotations can be expressed with the <q> tag, quotation, and double quotation marks are automatically added before and after the quotation.

Example

<p>HTML is <q>a hypertext markup language for creating web pages</q>.</p>

Run code

Block quotations <blockquote>

Long quotations can be expressed with the <blockquote> tag, block quotation. The <blockquote> tag displays the quoted part as a separate paragraph.

Example

<p>Definition of HTML</p>
<blockquote>
It is a type of programming language used to create documents that can be viewed through the World Wide Web, one of the internet services.
</blockquote>

Run code

Abbreviations <abbr>

To represent an abbreviation of a term in HTML, use the <abbr> tag, abbreviation. When the mouse is placed over the <abbr> tag, the full form of the term specified in the title attribute appears.

Example

<p><strong><abbr title="Hyper Text Markup Language 5">HTML5</abbr></strong>
is the latest standard of HTML, a programming language used to create web documents.</p>

Run code

Address <address>

The <address> tag can be used to represent an address in HTML. This address is displayed in italics, and a small amount of space is automatically inserted above and below it.

Example

<address>Sangam-dong, Mapo-gu, Seoul</address>

Run code