如何在 HTML 中显示一个 URL 来解释引用/删除/插入的文本?

htmlweb developmentfront end technology更新于 2026/1/16 6:04:17

cite  属性允许您添加 URL 并解释文本被删除或插入的原因。

示例

您可以尝试运行以下代码来实现 cite  属性 −

<!DOCTYPE html>
<html>
   <body>
      <h3>Define WordPress</h3>
      <q cite = "https://wordpress.org/">
      WordPress is open source software you can use to create a beautiful website, blog, or app.</q>
   </body>
</html>

相关文章


有用资源