HTML blockquote cite 属性
htmlweb developmentfront end technology更新于 2025/8/20 11:24:17
<blockquote> 元素的 cite 属性用于设置引用的来源。
以下是语法 −
<blockquote cite="url">
以上,url 是引用的来源。现在让我们看一个实现 <blockquote> 元素的 cite 属性的示例 −
示例
<!DOCTYPE html> <html> <body> <h2>Magento</h2> <p>Magento as stated on the official website:</p> <blockquote cite="https://magento.com/products"> Magento Commerce, part of Adobe Commerce Cloud, offers a one-of-a-kind eCommerce solution with enterprise power, unlimited scalability, and open-source flexibility for B2C and B2B experiences. Magento allows you to create unique, full-lifecycle customer experiences proven to generate more sales. </blockquote> </body> </html>
输出

在上面的例子中,我们使用 <blockquote> 文本设置了引言 −
<blockquote cite="https://magento.com/products"> Magento Commerce, part of Adobe Commerce Cloud, offers a one-of-a-kind eCommerce solution with enterprise power, unlimited scalability, and open-source flexibility for B2C and B2B experiences. Magento allows you to create unique, full-lifecycle customer experiences proven to generate more sales. </blockquote>
使用 cite 属性设置引用来源 −
cite="https://magento.com/products"
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

