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
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
The browser adds the quote marks for you.
Long quotes are indented.
The inner quote automatically uses single marks.
Quick quiz
1. Which tag is for a short inline quote?
q adds quote marks.
2. Which is for a long quote?
blockquote is indented.
3. <cite> is used for
cite names a work.
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.