HTML Quotations: q, blockquote and cite Elements
Quote within a sentence
Use q for a short quotation inside surrounding text. Browsers normally supply quotation marks according to styling and language. Avoid adding another pair of quotation marks just because the source is a quote.
The quotation appears within the paragraph.
Quote a longer passage
Use blockquote for a quotation that stands apart from surrounding prose. Put a paragraph inside when appropriate. The optional cite attribute is a URL for the source; it does not automatically display an attribution or a clickable link.
<blockquote cite="https://example.com/field-notes"> <p>Observe the leaves before watering.</p></blockquote><p> From <cite>Field Notes</cite> (fictional source).</p>The passage is separate from the visible attribution. The example URL is illustrative.
Distinguish citation from quotation
The cite element identifies the title of a creative work, such as a book, not a person’s name alone. Put attribution outside the quoted passage. Do not use blockquote simply to indent unrelated content.
<p> Ravi recommends <cite>The Quiet Garden</cite> .</p><p> He says <q>Start with one pot.</q></p>A work title and a quotation carry different meanings.
Practice and next steps
Write a short fictional quotation and a separate longer quotation. Add the fictional work title outside the quote.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Quotations and citations — Knowledge Check
Apply the concepts from Quotations and citations.
What marks a quotation inside a sentence?
What does the cite attribute of blockquote provide?
Which belongs inside a cite element?
A blockquote has a cite URL. How should a visible source link be provided?
A paragraph is not a quotation but should be indented. What is appropriate?