Content · Web Development · HTML

HTML Quotation Markup: Inline vs Block Quotes and Attribution

Use q for a short quotation within a sentence, and blockquote when the passage stands apart. Attribution should make the speaker or source clear.

1 views Published Oct 19, 2026 Updated Oct 19, 2026 Admin

Use q for a short quotation within a sentence, and blockquote when the passage stands apart. Attribution should make the speaker or source clear.

What You Need to Know


A blockquote can contain several paragraphs; q normally sits within phrasing content. Neither element verifies that the quotation is genuine.

The goal is not to collect as many tags as possible. Pick the element that best describes what the content really is.

Example: See It in Action


Take a look at this small piece of HTML. You can use it in a practice document and change the text to make it your own.

This is a short HTML fragment. To try it as a webpage, put it inside the body element of a complete HTML document.

<p>Maya said, <q>Keep practicing!</q>
</p>
<blockquote>
    <p>Learning takes patience and curiosity.</p>
</blockquote>
<p>Short and long quotations use different markup.</p>

Let’s Understand the Example


  • A p groups a paragraph of related text. Start another paragraph for a new thought.
  • Q wraps a short quotation within the surrounding sentence.
  • Blockquote marks a longer quotation separated from surrounding text.

Look for the text “Maya said,” in the page. If the visible result surprises you, inspect the rendered elements to see what the browser actually built.

What Should You See?


The page should include “Maya said,”. If it looks different from what you expected, open developer tools and compare the source with the elements the browser created.

Try removing one piece of markup in a scratch copy, refresh the page, and compare the behavior. This is often the fastest way to understand what that piece contributes.

Try It Yourself


  1. Rewrite a long quoted sentence into a blockquote with attribution.
  2. Save your changes, open or refresh the page, and compare the result with the original example.
  3. Tell a friend what your change did. If you are not sure, undo it, refresh the page, and compare.

Common Beginner Mistakes


  • Using blockquote to make ordinary text indented even though nobody is being quoted.
  • Avoid picking tags just for their default bold, italic or spaced appearance. Use CSS for presentation.

Key Takeaways


  • Use q for a short quotation within a sentence, and blockquote when the passage stands apart.
  • A p groups a paragraph of related text. Start another paragraph for a new thought.
  • A blockquote can contain several paragraphs; q normally sits within phrasing content. Neither element verifies that the quotation is genuine.
Share this resourceSend this page to someone who may find it useful.