Logo OnlineCBT
HTML Tutorial
HTML · LESSON 12

Quotations and Citations

Display blockquotes, inline quotes, abbreviations, and citations correctly for accessibility and SEO.

Level: Beginner to Advanced
Duration: ~60 Mins Deep-Dive
Updated: 31 Jul 2026

Quotations and Citations

1. Block Quotations (<blockquote>)

When citing extended passages, research references, speeches, or multi-sentence quotes from external sources, HTML provides the <blockquote> element. The <blockquote> is a block-level semantic container that separates quoted material from the main narrative flow of your document.

Browsers automatically apply visual indentation (typically a 40px left and right margin) to <blockquote> elements by default. To provide machine-readable citation data to search engines and web crawlers, we use the optional cite attribute to store the source URL.

<!-- Block Quote with Citation URL -->
<blockquote cite="https://www.w3.org/TR/html52/">
    <p>The World Wide Web is an information space where items of interest, referred to as resources, are identified by global identifiers called Uniform Resource Identifiers (URI).</p>
</blockquote>
Hardcoded Output Result (Rendered View)

The World Wide Web is an information space where items of interest, referred to as resources, are identified by global identifiers called Uniform Resource Identifiers (URI).

Understanding the cite Attribute vs <cite> Tag:

Do not confuse the cite attribute (used inside <blockquote cite="URL">) with the <cite> tag. The cite attribute holds a non-visible URL for search engine indexers, whereas the <cite> element displays the visible human-readable title of a cited work on screen.

2. Inline Quotations (<q>)

For short quotes embedded directly within an existing sentence, HTML provides the inline <q> element. Unlike block quotes, <q> does not break onto a new line or apply block indentation.

One major advantage of using <q> over manually typing quotation marks ("...") is that browsers automatically generate language-appropriate, localized quotation marks around the enclosed text based on the document's lang attribute (e.g., standard quotes in English, angle quotes « » in French).

<!-- Inline Quote Example -->
<p>As Tim Berners-Lee famously remarked, <q cite="https://www.w3.org">The Web does not just connect machines, it connects people.</q> This philosophy drove the creation of open standards.</p>
Hardcoded Output Result (Rendered View)

As Tim Berners-Lee famously remarked, The Web does not just connect machines, it connects people. This philosophy drove the creation of open standards.

3. Citations (<cite>), Abbreviations (<abbr>), and Addresses (<address>)

HTML provides specialized semantic tags to credit creative works, define technical acronyms, and supply author contact details.

Semantic Element Display Mode Purpose & Semantic Usage
<cite> Inline (Italic) References the title of a work (book, paper, movie, song, painting, research spec).
<abbr> Inline (Dotted) Defines acronyms or abbreviations. Uses the title attribute to provide a full expansion tooltip.
<address> Block (Italic) Supplies contact metadata (email, phone, physical location) for the author or owner of the document.

1. The <cite> Tag

The <cite> element must contain the title of a work, not the name of a person. By default, browsers render text inside <cite> in italics.

2. The <abbr> Tag

The <abbr> element helps screen readers pronounce acronyms correctly (e.g. reading "H-T-M-L" instead of attempting to pronounce it as a single word) and displays a helpful hover tooltip when paired with the title attribute.

3. The <address> Tag

The <address> element is reserved exclusively for contact info of the document or article author. It should not be used for generic postal addresses (use standard paragraphs for generic addresses).

<!-- Citations, Abbreviations, and Address Examples -->
<p>For more details, read the book <cite>Web Design Standards</cite> by John Doe.</p>

<p>We build modern web applications using <abbr title="HyperText Markup Language version 5">HTML5</abbr>.</p>

<footer>
    <address>
        Written by <a href="mailto:author@example.com">Alex Mercer</a>.<br>
        Visit us at Tech City, CA.
    </address>
</footer>
Hardcoded Output Result (Rendered View)

For more details, read the book Web Design Standards by John Doe.

We build modern web applications using HTML5.

4. Building Professional Citation Blocks

In academic or journalistic web publishing, combining <blockquote> with <cite> and <footer> creates a complete, semantic citation block.

<!-- Complete Semantic Quote & Citation Block -->
<figure>
    <blockquote cite="https://www.inspirationalquotes.com/steve-jobs">
        <p>"Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma—which is living with the results of other people's thinking."</p>
    </blockquote>
    <figcaption>
        — Steve Jobs, speech published in <cite>Stanford Commencement Address</cite> (2005)
    </figcaption>
</figure>
Hardcoded Output Result (Rendered View)

"Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma—which is living with the results of other people's thinking."

— Steve Jobs, speech published in Stanford Commencement Address (2005)

5. Homework Assignments & Practical Exercises

Task 1: Academic Article Citation Page (Current Lesson)

Create a citations.html page. Write an article containing a <blockquote> with an explicit cite URL attribute. Include an inline quote using <q> and credit the book title using <cite>.

Task 2: Technical Glossary with Tooltips (Current Lesson)

Build a tech glossary containing at least four acronyms (e.g. HTML, CSS, HTTP, DNS) wrapped in <abbr> tags with descriptive title attributes. Add a footer containing an <address> block with your author contact email.

Task 3: Full Semantic Quote Audit (All-Inclusive Task)

Combine learnings from Lessons 01 through 12: Construct a research paper summary using headings, paragraphs, block quotes, abbreviations, and author addresses. Validate your code via validator.w3.org and verify in Browser DevTools that all cite attributes render cleanly.

6. Frequently Asked Interview Questions

Q1: What is the primary semantic difference between <blockquote> and <q>?

Answer: <blockquote> is a block-level element used for long, multi-line quotations and applies block indentation by default. <q> is an inline element used for short phrases embedded within a sentence, and browsers automatically enclose its content inside quotation marks.

Q2: Should the name of a person be wrapped inside a <cite> tag?

Answer: No, according to official W3C HTML5 specifications, the <cite> tag must only be used to title a work (such as a book, article, movie, paper, or song). It should not be used to wrap a person's name (e.g. <cite>Albert Einstein</cite> is incorrect; <cite>Theory of Relativity</cite> is correct).

Q3: How does the <abbr> tag improve accessibility for screen readers?

Answer: Screen readers use the <abbr> tag and its title attribute to determine whether an acronym should be spelled out letter-by-letter or spoken as a full phrase, preventing automated voice engines from pronouncing acronyms incorrectly.

Q4: What is the correct semantic use of the <address> element?

Answer: The <address> tag should strictly be used to provide contact information (email, phone, physical address, social link) for the author or owner of the webpage or nearest <article>. It should not be used for generic physical addresses that do not relate to author contact info.

Next Lesson: HTML Links and Hyperlinks

Now that you master quotations, citations, abbreviations, and contact metadata, our next lesson explores web navigation and hyperlinking:

  • Anchor Tag Mechanics (<a>): Creating hyperlinks with the href attribute.
  • Absolute vs. Relative URLs: Linking to external websites vs local project files.
  • Target Attributes: Opening links in new tabs using target="_blank" safely with rel="noopener noreferrer".
  • Page In-Page Anchors: Creating smooth scrolling jump links using element id targets.

📝 Live Lesson Practice

HTML/CSS JavaScript Python C++ C PHP
⌨️ Practice Inputs (लाइव इनपुट भरें) (खाली होने पर RED, भरने पर GREEN underline)
💻 Code Editor (Monaco VS Code Engine)
👀 Live Preview
Address Contact

+91 7877547686

E-mail

onlinecbtportal@gmail.com

Helpline Number

+91 7877547686


Click To Download
Get it on Google Play

ऐप डाउनलोड करने
के लिए Google Play पर
उपलब्ध है

WhatsApp Chat