Is this the correct use of Blockquote
, q
and cite
?
<p>
<blockquote>Type HTML in the textarea above, <q>and it will magically appear</q> in the frame below.
</blockquote>
<cite><a href="http://stackoverflow.com">refrence url</a>
</p>
Is use of Blockquote
, q
semantically correct? or both are presentational element , so should not be used?
Using attributes such as the
cite
attribute of theblockquote
orq
doesn't make it easily displayable (without JS or tricky CSS) and so does not address the aim of displaying a reference link easily. It is now conforming to includecite
(and/orfooter
) intoblockquote
to specify the source, either textually of through a URL, of the quote, like below :Note that :
cases of
cite
that are part of the quote contents (not the source reference) are also deemed quite rare, and should be handle through a differenciating class on the relevantcite
subtag)Regarding
q
, it is indeed aimed to quote inline, but it is more likely to be used outside of blockquotes (quotes into quotes are quite rare).