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