Home 〉 HTML Tutorials 〉 HTML Quotation and Citation Tags - blockquote, q, cite, abbr, address
HTML Quotation and Citation Tags - blockquote, q, cite, abbr, address !
What are the HTML quotation and citation elements and how are they used in web development?
In this detailed blog post on HTML Quotation and Citation Elements, we covered essential tags such as '<blockquote>', '<q>', '<cite>', '<abbr>', and '<address>', explained their syntax, attributes, use cases, and practical examples. We also provided styling suggestions, related internal topics, and external references for better understanding. This complete guide will help you structure your web content semantically and improve your page SEO effectively.
In HTML, quotation and citation elements are used to format quoted texts, cite sources, abbreviations, and address information on a webpage. These tags are essential for giving semantic meaning to the content and improving accessibility and SEO. In this blog post, we'll explore each of these elements with syntax, examples, attributes, and appropriate styling for a clean and professional presentation.
We will cover the following tags:
Syntax with Example:
<!DOCTYPE html>
<html>
<body>
<blockquote cite="https://example.com">Quoted content goes here.</blockquote>
</body>
</html>
output 📌
Quoted content goes here.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
Example:
<!DOCTYPE html>
<html>
<body>
<blockquote cite="https://en.wikipedia.org/wiki/HTML" style="border-left: 4px solid #ccc; padding: 10px; background-color: #f9f9f9;">
HTML is the standard markup language for documents designed to be displayed in a web browser.
</blockquote>
</body>
</html>
output 📌
HTML is the standard markup language for documents designed to be displayed in a web browser.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
This example quotes a definition from Wikipedia. The 'cite' attribute specifies the source, and CSS styles improve readability.
Syntax with Example:
<!DOCTYPE html>
<html>
<body>
<q cite="https://example.com">This is a short quote.</q>
</body>
</html>
output 📌
This is a short quote.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
Example:
<!DOCTYPE html>
<html>
<body>
<p style="font-size: 16px; color: #333;">He said, <q cite="https://example.com">practice makes perfect</q> and left.</p>
</body>
</html>
output 📌
He said, practice makes perfect
and left.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
This short quote is embedded within a paragraph using the '<q>' tag.
Syntax with Example:
output 📌
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
Example:
<!DOCTYPE html>
<html>
<body>
<p style="font-size: 16px;">One of my favorite books is <cite style="color: #2a7ae2;">The Great Gatsby</cite>.</p>
</body>
</html>
output 📌
One of my favorite books is The Great Gatsby.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
The '<cite>' tag emphasizes the title of the book using styling.
Syntax:
<!DOCTYPE html>
<html>
<body>
<abbr title="HyperText Markup Language">HTML</abbr>
</body>
</html>
output 📌
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
Example:
<!DOCTYPE html>
<html>
<body>
<p style="font-size: 16px;">The term <abbr title="World Health Organization" style="border-bottom: 1px dotted #000;">WHO</abbr> is often used in health contexts.</p>
</body>
</html>
output 📌
The term WHO is often used in health contexts.
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
On hover, the full form of WHO is shown thanks to the 'title' attribute.
Syntax:
<!DOCTYPE html>
<html>
<body>
<address>Contact us at support@example.com</address>
</body>
</html>
output 📌
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
Example:
<!DOCTYPE html>
<html>
<body>
<address style="font-style: normal; font-size: 14px; color: #555; padding: 10px; background-color: #f1f1f1;">
Written by John Doe<br>
Visit us at: example.com<br>
Email: john@example.com
</address>
</body>
</html>
output 📌
You can Try the above code by changing the values in our user-friendly code editor by clicking the "Try It" button and see the output of the same.
This tag semantically declares author contact info and is styled for better visibility.
Quotation and citation elements in HTML help make your content more meaningful and structured. Tags like '<blockquote>', '<q>', '<cite>', '<abbr>', and '<address>' are not just for visual presentation but also enhance the accessibility and SEO of your webpages. Using them properly shows attention to semantic HTML, which search engines reward.
A '<blockquote>' is for long, block-level quotes, while '<q>' is for short inline quotations.
Yes, you can style them using inline or external CSS. Common properties include padding, border, and background-color.
It semantically marks the title of a creative work and helps with SEO and accessibility.
Yes, it's best used for abbreviations with the full form shown in the title attribute.
No, it can include any contact information like name, address, website, or email.