如何在 HTML 中使用引號?
我們使用 <q> 標籤在 HTML 中新增短的引號。如果我們要引用多行內容,請使用 <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 標籤
<blockquote> 標籤在 HTML 中用於顯示長引文。
語法
以下是 <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>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 語言
C++
C#
MongoDB
MySQL
Javascript
PHP