如何在 HTML 文档中显示长引文?
使用 <blockquote> 标签表明长引文。HTML <blockquote> 标签用于包含长引文(即跨越多行的引文)。它应该仅包含其中的块级元素,而不仅仅是普通文本。
以下是属性列表 −
| 属性 | 值 | 描述 |
|---|---|---|
| cite | URL | 引文 URL,如果它取自网络。 |
示例
你可以尝试运行以下代码在 HTML 文档中实现 <blockquote> 标签 −
<!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>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
JavaScript
PHP