Quotations and Citations
You'll learn how to properly mark up quoted text and cite sources in HTML.
What Are HTML Quotes and Citations?
When you include someone else's words or reference a creative work on your webpage, HTML provides specific elements to mark them up properly. This isn't just about styling—it's about telling browsers, search engines, and assistive technologies what kind of content this is.
The Three Core Elements
<blockquote> for Long Quotes
Use <blockquote> when you're quoting a paragraph or longer passage from another source. Think of it like indenting a quote in an essay.
<blockquote>
<p>The Web is more a social creation than a technical one.</p>
</blockquote>
<q> for Short, Inline Quotes
Use <q> for brief quotes within a sentence. Browsers typically add quotation marks automatically.
<p>Tim Berners-Lee said <q>the Web is for everyone</q> in his vision statement.</p>
<cite> for Titles of Works
Use <cite> to reference the title of a book, article, film, or other creative work—not the author's name.
<p>This idea appears in <cite>Weaving the Web</cite> by Tim Berners-Lee.</p>
Why It Matters
Just like using <strong> tells the browser "this is important" (not just "make it bold"), these elements communicate meaning. A screen reader might announce "quote" before reading a <q> element, helping visually impaired users understand the context.
Key Takeaway: Use <blockquote> for long quotations, <q> for short inline quotes, and <cite> for titles of creative works—giving semantic meaning to borrowed content.