如何在 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>

更新于:2020 年 6 月 24 日

560 次浏览

开启你的 职业生涯

获得课程认证

开始
广告
© . All rights reserved.