Quotes and Blockquotes
There are two common ways of marking up quotations in HTML: quote (<q>...</q>
) and blockquote (<blockquote>...</blockquote>
).
The quote tag defines a short quotation. Browsers normally insert quotation marks around the quotation.
The blockquote tag specifies a section quoted from another source. Browsers usually indent blockquote elements.
HTML
<q>This is an quote element, good for keeping quotes inline with other paragraph text.</q>
<blockquote>
Sometimes a quote spans multiple sentences or lines.<br/>
Longer quotes are better served in a blockquote element.
</blockquote>
html
- Previous
- Next