如何在 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 次浏览

职业生涯起步

完成课程即可获得认证

开始入门
广告