What are HTML Quotations?
HTML Quotations are special tags used to display quoted text, abbreviations, citations, addresses, or text with special meaning in a webpage. They help structure text semantically so browsers, search engines, and readers understand whether the text is a quotation, a citation, an abbreviation, or formatted in a specific direction. Using these tags also improves accessibility and ensures proper styling by default.
<blockquote> — Block Quotation
- Used for long quotations (usually spanning multiple lines).
- The browser usually displays it as indented text.
- To indicate the source, you can include the cite attribute.
<q> — Inline Quotation
- Used for short, inline quotations.
- Browsers automatically add quotation marks.
- Fits inside a sentence.
<cite> tag— Citation
- Used to reference the title of a work (book, website, research paper, etc.).
- Browsers usually italicize the content.
- Not meant for URLs directly — use
<a>for clickable links.
<bbr> tag — Abbreviation or Acronym
The <abbr> tag defines abbreviations or acronyms, and the title attribute shows the full form when hovered over. Users and accessibility tools like screen readers benefit from this increase in clarity.
<address> tag — Contact Information
The <address> tag is used to display contact details for the author or owner of a webpage. This can include things like an email address, website link, or physical address. By default, most browsers show <address> content in italics.
<bdo> — Bi-Directional Override
The <bdo> tag is used to change the direction of text display, either left-to-right (ltr) or right-to-left (rtl). This is useful for languages that use different writing directions.