Hi I'm seeing a great number of different ways to implementat blockquote
in html but it doesn't seem clear in its documentation how should I properly format a blockquote
let's say of a famous quote and metion its author like:
In victory, you deserve Champagne, in defeat, you need it.
Napoleon Bonaparte
What would the correct format of that be in HTML5?
Should the author be inside or outside the blockquote
tag?
Should it be inside the cite
attribute? (even knowing the documentation specifies an URI , not author)
I googled about this and it looks like
<figure>
and<figcaption>
should do the job:https://developer.mozilla.org/samples/html/figure.html
http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-figure-element
http://neilpie.co.uk/2011/12/13/html5-quote-attribution/
For example, use
HTML 5 documentation says, "Small print typically features disclaimers, caveats, legal restrictions, or copyrights. Small print is also sometimes used for attribution, or for satisfying licensing requirements."
UPDATE 2018
HTML 5.3 Editor’s Draft, 9 March 2018
W3C says about the cite element:
So the following code it's fine:
My preference and it validates...
This can be covered by Bootstrap 4
<footer class="blockquote-footer">
element:This is how Bootstrap does quotes in v3.3.
More on the footer element from MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer
You may also consider using Structured Data, such as microdata, RDFa, and microformats.