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