嗨我看到不同的方式或大量的在是否履行HTML ,但它似乎並沒有明確的說明文件中我應該如何正確地格式化 比方說,一個名言並提醒其作者如:HTML5塊的報價與作者
在勝利,你應該得到香檳,在失敗中,你需要它。
拿破崙·波拿巴
會的正確格式是HTML5是什麼?
如果筆者是標籤內部或外部? 它應該是cite
屬性裏面? (甚至不知道該文檔指定的URL,而不是作者)
嗨我看到不同的方式或大量的在是否履行HTML ,但它似乎並沒有明確的說明文件中我應該如何正確地格式化 比方說,一個名言並提醒其作者如:HTML5塊的報價與作者
在勝利,你應該得到香檳,在失敗中,你需要它。
拿破崙·波拿巴
會的正確格式是HTML5是什麼?
如果筆者是標籤內部或外部? 它應該是cite
屬性裏面? (甚至不知道該文檔指定的URL,而不是作者)
http://neilpie.co.uk/2011/12/13/html5-quote-attribution/
例如,使用
<small class="author">Napoleon Bonaparte<small>
HTML 5文件說,「小字通常設有免責條款,注意事項,法律限制,或版權。小字有時也用於歸屬,或爲滿足許可重新quirements「。
我的偏好,它驗證...
<!doctype html>
<html lang="en">
<head><title>Blockquote Test</title></head>
<body>
<div style="width:300px;border:1px solid #cecece; padding:10px;">
<blockquote cite="URL">
In victory, you deserve Champagne, in defeat, you need it.
</blockquote>
<div class="credit" style="text-align:right;">
<cite><a href="URL">Napoleon Bonaparte</a></cite>
</div>
</div>
</body>
</html>
作爲[規格](http://www.w3.org/TR/html5/text-level-semantics.html#the-cite -element)說,一個引用元素不能包含一個人的名字。 – 2011-03-29 15:29:19
是「調降至」的稱號,而不是作者:) – 2012-07-19 05:27:34
那麼接下來你如何引用作者的? – 2013-06-04 16:38:54
我GOOGLE了這件事,它看起來像<figure>
和<figcaption>
應該做的工作:
<figure>
<blockquote cite="https://developer.mozilla.org/samples/html/figure.html">
Quotes, parts of poems can also be a part of figure.
</blockquote>
<figcaption>MDN editors</figcaption>
</figure>
https://developer.mozilla.org/samples/html/figure.html
<figure>
<blockquote cite="http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-figure-element">
The figure element represents some flow content, optionally with a caption,
that is self-contained and is typically referenced as a single unit from the
main flow of the document.
</blockquote>
<figcaption>asdf</figcaption>
</figure>
http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-figure-element
由於這是非常有用的。似乎圍繞一個看似簡單的問題存在很多混亂。 – nickpish 2013-07-25 02:35:04
這是引導程序是如何做的在V3.3.1 :http://getbootstrap.com/css/#type-blockquotes
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
更多來自MDN頁腳元素:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer
的HTML
<footer>
元素表示爲與其最接近的 切片內容或切片根元素頁腳(即,它的最近的父<article>, <aside>, <nav>, <section>, <blockquote>, <body>, <details>, <fieldset>, <figure>, <td>
)。頁腳通常包含有關該部分的作者的信息 ,版權數據或指向相關 文檔的鏈接。
這是無效的,文件說引用shoudnt是一個人的名字 – 2016-01-07 19:42:31
@YannChabot是這樣的:'' – skibulk 2016-01-08 11:33:20
你是對的,他們改了文檔,然後他們說這個引用不能用來引用一個人,現在你可以 – 2016-01-08 14:50:08
UPDATE 2018
HTML 5.3編者草案,2018年3月9日
W3C說,對cite element:
的cite元素代表了一個創造性的工作提供參考。它必須 包括標題的工作或作者的名(人, 人或組織)或URL引用,或在 縮寫形式按照用於除 引用的慣例參考元數據。
所以下面的代碼它的優良:
<blockquote>
Those who pass by us, do not go alone, and do not leave us alone;
they leave a bit of themselves, and take a little of us.
<cite>Antoine de Saint-Exupéry</cite>
</blockquote>
您可以添加一個鏈接到報價的HTML 5文檔嗎? – mikemaccana 2015-07-04 20:19:42
它不會似乎是說了,因爲你可以看到,這裏是什麼W3C是怎麼說的:'小元素代表所謂的「細則」或「小字」,如法律聲明和警告。 '很much- http://www.w3.org/TR/html-markup/small.html – 2016-01-07 19:40:41