HTML q cite 属性
htmlweb developmentfront end technology更新于 2026/1/28 14:04:17
<q> 元素的 cite 属性用于设置引用的来源 URL。来源不会显示在网页上,但对屏幕阅读器有帮助。
现在让我们看一个实现 <q> 元素的 cite 属性的示例。 −
示例
<!DOCTYPE html> <html> <body> <h2>What we want?</h2> <p>PETA states, <q cite="https://legacy.peta.org/why-give/">We are the largest animal rights organization in the world, with more than 6.5 million members and supporters worldwide. We need your continued support in order to stop cruelty to animals wherever it occurs.</q> </p> </body> </html>
输出

在上面的例子中,我们使用 <q> 标签设置了引言 −
<p>PETA states, <q cite="https://legacy.peta.org/why-give/">We are the largest animal rights organization in the world, with more than 6.5 million members and supporters worldwide. We need your continued support in order to stop cruelty to animals wherever it occurs. </q>
由于引文取自官方网站,因此务必通过引用或使用 cite 属性来注明来源 −
cite="https://legacy.peta.org/why-give/"
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

