使用<blockquote>标记表示长引号。HTML <blockquote>标记用于包含长引号(即,跨越多行的引号)。它应该只包含块级元素,而不仅仅是纯文本。
以下是属性-
属性 | 值 | 描述 |
---|---|---|
引用 | 网址 | 报价的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>