CHAPTER 11 · HTML
Quotations, abbreviations, contact details and dates
Not every piece of text is an ordinary sentence from the page author. Sometimes you are quoting someone, naming a work, defining a term or giving an event date. This chapter helps you describe those roles without choosing elements only for their appearance.
Download example files (ZIP)What you will learn
Choose q or blockquote for a quotation. Distinguish the cite element from a cite attribute. Explain abbreviations visibly and mark a defining term. Use address for the relevant author or organisation's contact details. Write readable dates with useful machine-readable values.
Quoting a short phrase with q
<p>The workshop mentor said, <q>Try one change and check it.</q></p>Blockquote for a separate quoted passage
<blockquote>
<p>Keep a short note of the first step that surprised you.</p>
</blockquote>Cite names a work, not every person mentioned
<p>The passage comes from <cite>Small Steps Practice Notes</cite>.</p>Abbr: explain the shortened name
<p>A peer learning group (PLG) meets after class.</p>
<p>Bring your notes to the <abbr title="peer learning group">PLG</abbr>.</p>Dfn: identify the term being defined
<p>A <dfn>practice log</dfn> is a short record of what you tried and checked.</p>Address: contact information in context
<address>Practice club contact: club@example.com</address>Time: readable text and a structured value
<p>The practice session is on <time datetime="2026-12-12">12 December 2026</time>.</p>2026-12-12 uses year-month-day order. This avoids the ambiguity of a date such as 12/11, which different readers might interpret differently. Time does not automatically create a calendar event or change the text to the visitor's time zone.
2026-12-12 | ||
14:30 | ||
2026-12-12T14:30 | ||
2026-12-12T14:30+05:30 | ||
PT45M |
- 1Exact words from someone? Use q or blockquote
- 2Name a work with cite
- 3Introduce an abbreviation in visible words
- 4Write a date with a suitable time datetime
A contact address describes the relevant author or organisation; it is not every venue address.
Complete example: a fictional mentor's note
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mentor Practice Note</title>
</head>
<body>
<h1>A note for the practice group</h1>
<p>Our fictional mentor says, <q>Explain the result before changing the code.</q></p>
<blockquote>
<p>Write one question you can now answer without help.</p>
</blockquote>
<p>Teaching example from <cite>Small Steps Practice Notes</cite>.</p>
<p>A <dfn>practice log</dfn> records what you tried and checked.</p>
</body>
</html>This preview shows the example in a browser. Save the complete code in local files to test links between pages and downloads. Same-page section links work here.
Complete example: an event date and contact
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Peer Learning Group Meeting</title>
</head>
<body>
<h1>Peer learning group meeting</h1>
<p>The peer learning group (<abbr title="peer learning group">PLG</abbr>) welcomes new students.</p>
<p>Meet on <time datetime="2026-12-12">12 December 2026</time> at <time datetime="14:30">2:30 pm</time>, India Standard Time.</p>
<p>Venue: Room 6, second floor.</p>
<address>Fictional group contact: club@example.com</address>
</body>
</html>This preview shows the example in a browser. Save the complete code in local files to test links between pages and downloads. Same-page section links work here.
Problem and solution: the date is understandable to only one reader
Common mistakes and useful tips
Using blockquote only to create indentation. Treating cite as a person's name or assuming its attribute prints a citation. Hiding an abbreviation's only explanation in a tooltip. Wrapping every venue in address regardless of context. Writing a human phrase where datetime requires a defined format. Assuming time automatically sends reminders or performs time-zone conversion.
Practice questions
Which element fits a short quotation inside a sentence? Does a blockquote cite attribute create a visible source link? How should you make the expansion of a new abbreviation available without hovering? Is a workshop venue automatically contact information for address? Write the datetime value for 9 January 2027. Create a complete fictional event notice with a clear date, time zone, abbreviation and contact information.
Check your practice answers
Q. No. Write any necessary visible attribution or link separately. Give the full phrase visibly when first introducing it, then use the abbreviation consistently. No. Choose address for the relevant author's or organisation's contact information, not merely because some text names a location. 2027-01-09.Keep a meaningful title and heading. Use time with valid values, explain the zone visibly and use fictional contact information. Check that visible dates agree with datetime.
Interview questions
How do q and blockquote differ?
What is the difference between the cite element and cite attribute?
Why use time with datetime?
Why explain abbreviations visibly?
Quick revision
Choose quotation and definition elements for their meaning. Keep attribution and essential expansions visible. Use address for contact details in the right context. Match readable dates with valid datetime values. Explain the event's time zone rather than expecting HTML to convert it.