Inline Text Semantics
The <q> element represents phrasing content that is quoted from another source. NOTE: Quotation punctuation is automatically inserted by the user agent, so don't include it in the contents of the element.
Attributes for <q>
Type | Attribute List |
'Standard' Attributes | "cite" |
New HTML5 Attributes | "writingsuggestions" |
Notes
- The use of <q> elements to markup quotations is entirely optional; using explicit quotation punctuation (without <q> elements) is just as correct.
Recommended Links
Accessibility Information & Tips
- Use semantic markup elements like <em>, <strong>, <cite>, <blockquote>, <q>, <quote>, <sub>, and <sup> when appropriate. Use <em> and <strong> to indicate structural emphasis, use <blockquote> for long quotations which may require paragraph breaks, use <q> for short inline quotations, and use <sub> and <sup> for subscripts and superscripts. Visit https://www.w3.org/TR/WCAG20-TECHS/H49 for more information.
Search Engine Links (for more information)