Home / Learn HTML / HTML Quotations and Citations

HTML Quotations and Citations

Mark quotes, short or long, so browsers and search engines know where they come from.

Definition

HTML has special elements for text that comes from someone else. blockquote is for a long quote that stands as its own block. q is for a short quote inside a sentence; the browser adds quotation marks. cite names the title of the work, abbr explains an abbreviation, address gives contact details and bdo changes the text direction.

The cite attribute on blockquote and q stores the address of the source. It is not shown on screen but is useful for machines.

Theory in plain words

Short and long quotesqInlineQuote marks addedblockquoteBlock with indentCan hold paragraphs
Short and long quotes

What it is

The q, blockquote, cite and abbr elements mark quotes, sources and abbreviations.

Why we use it

They tell readers and software that text comes from somewhere else or is a short form.

How it works

q adds quote marks, blockquote indents a long quote and cite names the work.

Where it is used

  • Testimonials and reviews
  • Articles with sources
  • Technical terms such as HTML
Short quoteTry it Yourself

The browser adds the quote marks for you.

Block quoteTry it Yourself

Long quotes are indented.

Quote with authorTry it Yourself
Cite a workTry it Yourself
Style a quoteTry it Yourself
Nested quotesTry it Yourself

The inner quote automatically uses single marks.

Abbreviation in a quoteTry it Yourself
Quote with source linkTry it Yourself
Big pull quoteTry it Yourself
Quote with a name and photoTry it Yourself

Quick quiz

1. Which tag is for a short inline quote?

2. Which is for a long quote?

3. <cite> is used for

Common questions

Which tag is for a short inline quote?

<q>. q adds quote marks.

Which is for a long quote?

<blockquote>. blockquote is indented.

My notes
Ask a question about this lesson