如何在 HTML 中使用引號?
我們在 HTML 中使用 <q> 標籤來新增短引號。如果我們想引用多行,請使用 <blockquote> 標籤。
我們還可以在 <blockquote> 標籤中使用 cite 屬性來指示引用的來源,形式為 URL。
語法
下面是 <q> 標籤的語法。
<q>The content to be quoted</q>
示例
下面是 <q> 標籤的示例程式。
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for <q>Delhi Land and Finance</q></p> <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>
示例
在下例中,我們在 <h1> 標籤中的特定文字上使用了 <q> 標籤。
<!DOCTYPE html> <html> <head> <title>HTML u tag</title> </head> <body> <h1>Welcome to <q> INDIA </q> Kids.</h1> </body> </html>
使用 Blockquote 標籤
HTML 中的 <blockquote> 標籤用於顯示長引文。
語法
下面是 <blockquote> 標籤的語法。
<blockquote>The multiple line content to be quoted </blockquote>
示例
下面是 <blockquote> 標籤的示例程式。
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for Delhi Land and Finance</p> <blockquote>Delhi Land and Finance is one of the largest commercial real estate developer in India.</blockquote> </body> </html>
廣告
資料結構
網路
關係資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP