- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML Quotations & Citations
HTML Text and Links
HTML Quotations & Citations
HTML has separate tags for quoting someone and for naming where it came from: blockquote for a long quote on its own, q for a short one inside a sentence, and cite for the title of the book, film or article it came from.
Using them instead of plain text and quote marks tells browsers and screen readers what is quoted and what is yours. Each one has its own lesson: blockquote, q and cite.
The <blockquote> Tag (For Long Quotes)
A long quotation that stands apart from your text. Browsers indent it by default.
Blockquote Example
html
<blockquote>
"The best way to get started is to quit talking and begin doing."
</blockquote>You can also include the source of the quote using the cite attribute:
Blockquote Example
html
<blockquote cite="https://www.example.com/quotes">
"Success is not final; failure is not fatal: It is the courage to continue that counts."
</blockquote>The cite attribute holds the web address of the source. It is not shown on the page, so if readers should see where the quote is from, write that in normal text too.
The <q> Tag (For Short Quotes)
A short quote inside a sentence. The browser adds the quotation marks itself, in the style of the page's language, so do not type your own as well.
Q Tag Example
html
<p>Walt Disney once said, <q>The way to get started is to quit talking and begin doing.</q></p>The <cite> Tag (For Source Titles)
The title of a creative work: a book, film, song, painting, article or website. It shows in italics by default.
Cite Example
html
<p><cite>The Mona Lisa</cite> was painted by Leonardo da Vinci.</p>Note that <cite> is for titles, not for people's names. "The Mona Lisa" is right; "Leonardo da Vinci" should be plain text.
The <abbr> Tag (For Abbreviations)
Not a quotation tag, but often used in the same kind of text: it marks an abbreviation and gives its full form in title.
Abbr Example
html
<p>The <abbr title="World Health Organization">WHO</abbr> was established in 1948.</p>
<!-- Hover to see the text "World Health Organization" -->The <address> Tag (For Contact Information)
The <address> tag represents contact details or author information for a document or article.
Address Tag Example
html
<address>
Written by <a href="mailto:info@example.com">John Doe</a>.<br>
Visit us at:<br>
123 Web Street, HTML City
</address>Example: Combining Quotation and Citation Tags
Combined Example
html
<blockquote cite="https://www.brainyquote.com/quotes/albert_einstein">
"Life is like riding a bicycle. To keep your balance, you must keep moving."
</blockquote>
<p><cite>Albert Einstein</cite></p>The quote appears as an indented block, with the author's name underneath. Strictly, the name should not be in <cite>, because it is a person, not a title. A better version is <p>- Albert Einstein</p>, or <cite> around the name of the book or speech the quote came from.
Browser Support
Chrome | Edge | Firefox | Safari | Opera | IE9+ |
|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | Yes |
Good to know
- Do not use
<blockquote>just to indent text. Use CSSmarginorpaddingfor that. - If you add your own quotation marks inside
<q>, readers see double quotes. - Quoting someone? Credit them in visible text. The
citeattribute alone is invisible.
HTML Quotations & Citations exercises
A long quotation
Write a block quotation with the paragraph Talk is cheap. Show me the code.
Result
