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

A quotation repeats someone else's words. Q marks a short quotation within a sentence. Browsers normally supply quotation marks around it, so you do not need to add another matching pair yourself.

HTML fragment — part of a document
<p>The workshop mentor said, <q>Try one change and check it.</q></p>

This mentor and quotation are fictional teaching material. In a real publication, quote accurately and identify the actual source. Do not invent a statement and present it as a real person's words.

Quotation-mark appearance depends on styling and language conventions. Q supplies quotation meaning; it does not promise one fixed shape of quotation marks everywhere.

Blockquote for a separate quoted passage

Use blockquote when a quoted passage forms its own section of content. It can contain paragraphs. Its default indentation is a presentation choice, not its main purpose.

HTML fragment — part of a document
<blockquote>
  <p>Keep a short note of the first step that surprised you.</p>
</blockquote>

Do not use blockquote just to indent your own ordinary paragraph. That would describe the content as a quotation when it is not. Use CSS later for decorative indentation.

A blockquote may have a cite attribute containing the source URL. That attribute does not automatically print a source label or create a visible link. If the reader needs the attribution, write it visibly outside the quoted content as appropriate.

Cite names a work, not every person mentioned

The cite element identifies the title of a creative work, such as a book, article or film. It is not a general wrapper for a person's name. The source author and the title are different pieces of information.

HTML fragment — part of a document
<p>The passage comes from <cite>Small Steps Practice Notes</cite>.</p>

The title above is fictional. Notice the distinction: cite as an attribute can hold a source address; cite as an element marks a work's title in the text. Neither one automatically checks that the quotation is accurate.

Abbr: explain the shortened name

An abbreviation is a shortened form of a word or phrase. Use abbr to identify it. If title supplies an expansion, it should contain the full expansion, not an unrelated tooltip.

HTML fragment — part of a document
<p>A peer learning group (PLG) meets after class.</p>
<p>Bring your notes to the <abbr title="peer learning group">PLG</abbr>.</p>

The first sentence provides a visible explanation, so understanding does not depend only on discovering a tooltip. Touch, keyboard and assistive-tool behaviour varies. Abbr does not invent the expansion or translate the abbreviation.

Dfn: identify the term being defined

Dfn marks a term at the point where its meaning is being explained. Put the explanation in the surrounding sentence or appropriate containing context. Merely using dfn on a word elsewhere does not supply a definition.

HTML fragment — part of a document
<p>A <dfn>practice log</dfn> is a short record of what you tried and checked.</p>

Use it for the actual defining occurrence, not every later mention. The default appearance may resemble italic text, but the role is a definition, not decoration.

Address: contact information in context

Address represents contact information for the relevant author or organisation associated with the nearest article or the document body. An article is a self-contained piece of content; we will study that element later.

HTML fragment — part of a document
<address>Practice club contact: club@example.com</address>

The address above is fictional. Address is not a compulsory container for every street address, event venue or date on a page. For example, the location of an exam can be an ordinary paragraph if it is not the author's contact information.

Do not put headings, whole articles or unrelated page sections inside address. Its purpose is contact details, even if browsers often display it in italics.

Time: readable text and a structured value

The time element can identify a date, a time or a supported duration. Its datetime attribute supplies a value software can interpret in a defined format, while its visible text can remain friendly.

HTML fragment — part of a document
<p>The practice session is on <time datetime="2026-12-12">12 December 2026</time>.</p>

The value 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.

KindExample datetime valueMeaning
Date2026-12-1212 December 2026
Time14:302:30 pm, without a stated time zone
Local date and time2026-12-12T14:30A date and time without a zone offset
Date and time with offset2026-12-12T14:30+05:30A time with an explicit offset from UTC
DurationPT45MA duration of 45 minutes

UTC is a common reference for expressing time offsets. A numeric offset does not by itself name a region or describe its future daylight-saving rules. Keep the relevant time zone clear in the visible event information too.

If datetime is absent, the text content has stricter format rules and must supply the time value itself. For beginner pages, use an explicit valid datetime whenever the visible phrase is written for people, such as next session on 12 December.

Choose the text role
  1. 1Exact words from someone? Use q or blockquote
  2. 2Name a work with cite
  3. 3Introduce an abbreviation in visible words
  4. 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

mentor-note.html
<!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>
Browser previewDocument title: Mentor Practice Note

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.

The short quotation stays inside a sentence. The separate passage uses blockquote. The work's title is marked with cite, while the final paragraph defines a term. All quoted material in this example was written for this lesson.

Complete example: an event date and contact

group-meeting.html
<!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>
Browser previewDocument title: Peer Learning Group Meeting

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.

The venue is ordinary page content. The address element supplies the group's contact information. Read the two datetime values and compare them with the displayed date and time before considering the task finished.

Problem and solution: the date is understandable to only one reader

Problem: an international workshop page says 03/04 at 2:30 without a year or zone.

Solution: choose an unambiguous visible date, include a year and explain the relevant zone. Add a valid machine-readable datetime. Do not claim that adding time alone will convert the event for every visitor.

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

  1. Which element fits a short quotation inside a sentence?
  2. Does a blockquote cite attribute create a visible source link?
  3. How should you make the expansion of a new abbreviation available without hovering?
  4. Is a workshop venue automatically contact information for address?
  5. Write the datetime value for 9 January 2027.
  6. Create a complete fictional event notice with a clear date, time zone, abbreviation and contact information.
Check your practice answers
  1. Q.
  2. No. Write any necessary visible attribution or link separately.
  3. Give the full phrase visibly when first introducing it, then use the abbreviation consistently.
  4. No. Choose address for the relevant author's or organisation's contact information, not merely because some text names a location.
  5. 2027-01-09.
  6. 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?

Q marks a short quotation within text. Blockquote marks a separately quoted passage and can contain paragraphs. Neither is just a request for a particular indentation.

What is the difference between the cite element and cite attribute?

The element marks a work's title in content. On elements that support it, the attribute supplies a source URL; it does not automatically display a citation.

Why use time with datetime?

It can pair readable date or time text with a structured value that software can interpret. It does not itself provide scheduling or conversion services.

Why explain abbreviations visibly?

Not every reader can reliably discover a tooltip. A visible first-use expansion makes the content understandable across more ways of using the page.

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.