如何在 HTML 文档中标记长引用?
htmlweb developmentfront end technology更新于 2024/7/29 15:08:17
使用 <blockquote> 标签标记长引用。HTML <blockquote> 标签用于包含长引用(即跨越多行的引用)。它应该只包含块级元素,而不仅仅是纯文本。
以下是属性 −
| 属性 | 值 | 描述 |
|---|---|---|
| cite | URL | 如果引用内容取自网络,则为引用内容的 URL。 |
示例
您可以尝试运行以下代码,在 HTML 文档中实现 <blockquote> 标签t −
<!DOCTYPE html> <html> <head> <title>HTML blockquote Tag</title> </head> <body> <blockquote>Browsers generally render blockquote text as indented text. If your quoted text needs to display within a non-quoted paragraph, you should use the HTML q tag. Most browsers surround q text with quotation marks.</blockquote> <q>Browsers generally render blockquote text as indented text. If your quoted text needs to display within a non-quoted paragraph, you should use the HTML q tag. Most browsers surround q text with quotation marks.</q> </body> </html>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

