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