What are HTML Quotations?
HTML quotation elements are used to define quotes, references, and abbreviations in a structured and semantic way.
Blockquote (Long Quotes)
The <blockquote> tag is used for long quotations, usually displayed as a block with indentation.
Inline Quotes (q)
The <q> tag is used for short inline quotations.
Cite (Reference)
The <cite> tag is used to reference the title of a work such as a book, movie, or article.
Abbreviation (abbr)
The <abbr> tag defines abbreviations and shows the full form when hovered.
Address Tag
The <address> tag is used for contact information, usually displayed in italics.
Bidirectional Override (bdo)
The <bdo> tag overrides text direction.
Best Practices
- Use blockquote for long quotes
- Use q for short inline quotes
- Use cite for references properly
- Provide title for abbr
- Use semantic tags instead of styling only
Common Mistakes
- Using blockquote for styling instead of quotes
- Missing title in abbr
- Overusing quotation tags unnecessarily
- Incorrect nesting of tags
Conclusion
HTML quotation elements help structure quotes and references semantically, improving readability and accessibility.