- Home
- /
- HTML Quotation Tags
HTML Tutorial
INTRODUCTION
HTML BASIC TAGS
INLINE & BLOCK ELEMENTS
HTML LISTS
HTML TABLES
HTML FORMS
HEAD ELEMENTS
HTML MEDIA
MISCELLANEOUS TAGS
- Home
- /
- HTML Quotation Tags
HTML Quotation Tags
HTML provide two tags for including quotations in your content:
<blockquote>
for long, block-level quotes<q>
for short, inline quotes
Why use Quotation Tags?
- Adds semantic meaning to your content
- Improves SEO and accessibility
- Makes it easier to cite sources
Basic syntax:
Block Quote
This is a block-level quote from an external source.
Inline Quote
He said, The unexamined life is not worth living.
Both <bloclquote>
and <q>
support the cite attribute:
cite
: URL pointing to the source of the quote
Styling with CSS
You can style quotations to fit your site’s design:
blockquote {
border-left: 4px solid #ccc;
margin: 1em 0;
padding-left: 1em;
color: #555;
font-style: italic;
}
q {
quotes: "“" "”";
}
Conclusion
Use:
<blockquote>
for longer, stand-alone quotations<q>
for brief, inline quotes
These tags improve structure, readability, and SEO-making your web content more effective and meaningful.