Lesson 12 of 51 · Module 2, lesson 6 of 9 · 3 min
Quotes, abbreviations and contact details
Mark quotations, abbreviations, titles of works and contact details.
What you'll learn
- How to mark long and short quotations
- How to write abbreviations so that everyone understands them
- How to mark the title of a work and the contact details for a page
Why this matters
When text comes from someone else, readers should know it. When you use a short form such as "WHO", some readers will not know what it means. These small elements make your page clearer and more honest, for people and for machines.
Long quotations: <blockquote>
Use <blockquote> for a quotation that stands on its own, as a block. Put the name of the source outside it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kind words</title>
</head>
<body>
<h1>What students say</h1>
<blockquote>
<p>The recipes are clear, and every step has a picture. I cooked the soup on the first try.</p>
</blockquote>
<p>— Ana, a student from our cooking class</p>
</body>
</html>
What you'll see: the quotation is moved in from the left edge. The name is a normal paragraph under it.
Short quotations: <q>
Use <q> for a short quotation inside a sentence. The browser adds the quotation marks for you, in the right style for the page's language — so do not type them yourself.
<p>My grandmother always said <q>taste before you add salt</q>.</p>
Abbreviations: <abbr>
An abbreviation is a short form of a longer name, such as WHO for World Health Organization. The clearest way to help every reader is to write the full name the first time, then the short form in brackets:
<p>The <abbr>WHO</abbr> (World Health Organization) gives advice about safe drinking water.</p>
You may also see a title attribute on <abbr>, which shows the full name when you point with a mouse. That does not help phone, keyboard or screen-reader users, so spell it out in the text as well.
Titles of works: <cite>
Use <cite> for the title of a creative work: a book, a film, a song, a website. Not for the name of a person.
<p>This recipe comes from the book <cite>Soups of the World</cite>.</p>
Browsers show <cite> in italic.
Contact details: <address>
<address> is for the contact details of the person or organisation responsible for the page (or for one article). It is not for any address that appears in the text.
<address>
Written by Ana Lima.<br>
Email: ana@example.com
</address>
Try it yourself
- Select the "Kind words" example and choose Try it.
- Add a second quotation from another student, with their name under it.
- Add a sentence with
<q>inside it. Check that the quotation marks appear without typing them.
Common mistakes
- Using
<blockquote>to move text to the right. It means "this is a quotation", not "indent this". Fix: use it only for quotations; indentation is a job for CSS. - Typing quotation marks inside
<q>. You get double marks. Fix: let<q>add them. - Relying on
titleto explain an abbreviation. Many readers never see it. Fix: write the full name in the text the first time. - Using
<address>for every address. It is only for the page's contact details. Fix: a delivery address in a recipe is a normal paragraph.
Check yourself
- Which element is for a quotation inside a sentence?
- What is the clearest way to explain an abbreviation?
- Is
<cite>for the name of an author or for the title of a book?
Answers
<q>.- Write the full name in the text the first time you use the short form.
- For the title of a book (or another work).
Next: you have written a lot of HTML now. The next lesson shows how to leave notes in your code that only you — and other developers — can see.

