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