Quote
Words someone else said or wrote, set off by a 3 px accent bar on the left, 17/28 in --text-strong, with the source in a footer below. Only for real quotations.
Usage
Use it when
- Quoting a person, a rule or a source inside an article, lesson or report: a lecturer's remark, a clause from exam regulations.
- Showing feedback someone wrote, attributed to them (a reviewer's comment on an assignment).
Use something else when
- Drawing attention to a warning, tip or important condition: use Alert. A quote bar is not a callout.
- The one next step on a page: use Spotlight.
- Pointing to the source of a fact: use Citation. A numbered citation is inline; a quote reproduces the words.
- Showing code or output: use Code block.
- A testimonial on a marketing page: use Card. Only with real, attributed words; never invented ones.
Where it goes. In the flow of prose or a section, at the reading width. It sets margin: 0, and because that rule comes after the prose spacing it also cancels the 16 px gap inside .prose; place it in a stack or add margin-block: 16px in project CSS until the system fixes this. On phones it keeps the bar and full width.
Examples
Students may bring one handwritten page of notes, both sides, to the final exam.
<blockquote class="quote measure"> <p>Students may bring one handwritten page of notes, both sides, to the final exam.</p> <footer>Exam regulations, Faculty of Computer Science, article 12</footer> </blockquote>
Clear diagrams and a solid analysis. Next time, explain why you chose UDP for the sensor data.
<figure class="quote measure"> <p>Clear diagrams and a solid analysis. Next time, explain why you chose UDP for the sensor data.</p> <figcaption>Dr. Sari Wulandari, on Lab report 2 · 3 November</figcaption> </figure>
Anatomy
| Part | What it is |
|---|---|
blockquote.quote | Required. The quote with the accent bar and 18 px left padding. Holds one or more <p>. |
footer | Optional. Who said it and where: --type-footnote in --text-subtle, 8 px below. |
figure.quote + figcaption | Also supported for the attribution, but put the words in a <p>, not a nested <blockquote> (its browser margin is not reset). |
Motion and microinteractions
- None. Quotes are static text.
Accessibility
- Use
<blockquote>(or<figure>with<figcaption>) so the quotation is announced as one. - Put the attribution in
footerorfigcaption, not in the quoted paragraph. - Add
cite="url"on the blockquote when the source is online, and link the source in the footer.
Do and don't
Do
- Quote exactly and attribute every quote.
- Keep quotes to a few sentences.
Don't
- Use
.quoteto highlight your own text. - Invent quotes or testimonials for example content.
- Nest a
<blockquote>insidefigure.quote.