HTMLcite 属性
<blockquote> 元素的 cite 属性用于设置引用来源。
以下是语法 −
<blockquote cite="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"
广告