There are at the same time a <cite> tag and a cite attribute in HTML. How does one correctly use them?
<q> is for inline quotations, such as when you need to quote a few words, half a sentence or a phrase from someone.
<blockquote> is for large chunks of text quotations, usually displayed as a block in CSS.
<cite>, doesn’t contain any quoted content but the quote author. For example,
<p>According to <cite>Einstein</cite>, <q>space can be bent</q>.</p>
Yep, that’s the correct use of the cite tag.
The cite attribute or property for <q> and <blockquote>, as in,
<blockquote cite="http://www.kavoir.com/">
<p><cite>, doesn’t contain any quoted content but the quote author.</p>
</blockquote>
Is for listing the source of the citation.
You should also read:
- Google: Search by sentence fragments with forgotten word replace by asterisk or wildcards
- HTML: Make Content Editable in Element / Tags without JavaScript
- HTML Tags Design for Template / Theme Creation
- JavaScript: Split and Divide Text String by A Delimiter
- CSS: Text over Image – Add Text Caption to Images


Facebook
Twitter
Google Plus
{ 2 comments… read them below or add one }
Would you use the cite tag or the cite attribute for the author and page number of a printed source? For example:
According to Einstein (p. 3 Theory of Relativity).
or
According to Einstein
or something different?
Actually, in HTML5 cite tag is for title of the work, NOT author name: http://dev.w3.org/html5/spec/text-level-semantics.html#the-cite-element
{ 1 trackback }