Understanding HTML Quotations and Citations

Author

Reads 1.1K

Black Laptop Computer Turned on Showing Computer Codes
Credit: pexels.com, Black Laptop Computer Turned on Showing Computer Codes

HTML quotations and citations are used to add context and credibility to content. They help readers understand the source of information and give credit to the original authors.

In HTML, quotations are typically enclosed in quotation marks, while citations are enclosed in blockquotes. The HTML code for a quotation is "text" and for a citation is <blockquote>text</blockquote>.

Using quotations and citations correctly can make a big difference in the overall quality and professionalism of your content. It's essential to use them consistently and accurately to avoid confusion and misinterpretation.

Readers also liked: Html B Tag

Blockquotes and Citations

Blockquotes are used to distinguish quoted text from the rest of the content, and they're the semantic choice for setting apart quotes of four lines or longer. The HTML spec doesn't require it, but it's a good practice to follow.

By default, browsers indent blockquotes by adding margin on each side, making them stand out from the surrounding text. You can also drop other elements inside a blockquote, like paragraphs, headings, or unordered lists.

Blockquotes should only be used for quotations, not as a decorative element in design, as it can confuse screen reader users. If you need something more decorative, consider using a div with a class instead.

Blockquotes

Credit: youtube.com, HTML Quotes, "q" "cite" "blockquote" -in English #08 | #theTRANSCENDENT #tTʇ

Blockquotes are a crucial element in setting apart quoted text from the rest of the content. By default, browsers indent blockquotes by adding margin on each side.

My tenth grade English teacher taught me that any quote of four lines or longer should be set apart as a blockquote. The HTML spec has no such requirement, but it's still a semantic choice for distinguishing quoted text.

Blockquotes can contain other elements inside them, such as paragraphs, headings, or unordered lists. We can drop paragraphs in there with no problem, and it's a good way to add more context to the quote.

It's essential to use blockquotes only for quotations and not as a decorative element in a design. This aids accessibility as screen reader users can jump between blockquotes, making it easier for them to navigate the content.

Margarita Champlin

Writer

Margarita Champlin is a seasoned writer with a passion for crafting informative and engaging content. With a keen eye for detail and a knack for simplifying complex topics, she has established herself as a go-to expert in the field of technology. Her writing has been featured in various publications, covering a range of topics, including Azure Monitoring.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.