HTML blockquote 标签

htmlweb developmentfront end technology更新于 2025/8/12 12:28:17

HTML 中的 blockquote 标签用于设置从其他来源引用的部分。它定义长引用。对于短引用,请使用 <q> 标签。

以下是 − 属性

  • cite: 引用来源

现在让我们看一个在 HTML 中实现 blockquote 标签的示例−

示例

<!DOCTYPE html>
<html>
<body>
<h2>osCommerce</h2>
<p>According to the official website of osCommerce:</p>
   <blockquote cite="https://www.oscommerce.com/Us">
      We have been running successfully for over 19 years and have not only created
      hundreds of thousands of online store owners worldwide, but have also helped
      kickstart other companies and projects who have based their products on our
      work. We've grown so much with the community and love the engagement in helping
      us all succeed. We're anxious to see you get involved and be part of the success!
   </blockquote>
</body>
</html>

输出

在上面的例子中,我们使用了 <blockquote> 设置了一段引用。这会在文本周围设置长引用。−

<blockquote cite="https://www.oscommerce.com/Us">
We have been running successfully for over 19 years and have not only created hundreds of thousands of online store owners worldwide, but have also helped kickstart other companies and projects who have based their products on our work. We've grown so much with the community and love the engagement in helping us all succeed. We're anxious to see you get involved and be part of the success!
</blockquote>

同时,我们还使用 <blockquote> cite 属性显示了引用的来源−

cite="https://www.oscommerce.com/Us"

相关文章


有用资源