引用与署名
Four HTML 教程 elements give you precise ways to mark up quoted text, short inline citations, source references, and abbreviations — each with real meaning for search engines and screen readers.
长引述 blockquote
The
<blockquote>element indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation. A URL for the source of the quotation may be given using theciteattribute, while a human-readable version can be given using the<cite>element.
短内联引用 q
Tim Berners-Lee wrote:
万维网(W3)是一个广域超媒体信息检索计划,目标是让所有人都能访问浩瀚的文档宇宙。
就这一段话改变了世界。
署名来源
When quoting from a book or article, always identify the source. You can put <cite> inside a <footer> of the blockquote or inline after the quoted text. The element doesn't italicize — use CSS 教程 for that.
See HTML 教程 Living Standard §4.10.4 for the full rules.
缩写与工具提示
An HTML 教程 document is usually served over HTTPS using the REST architectural style.
悬停任意缩写查看完整形式——浏览器从 title 属性生成原生提示框。
速查规则
| Element | 适用场景 |
|---|---|
<blockquote> | Paragraph+ long quote, visually separate |
<q> | Short inline quote inside a paragraph |
<cite> | Source title (book, article, person) |
<abbr> | Abbreviation or acronym with expansion |