获取 HTML 中 content 属性信息的 HTTP 标头

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

使用 http-equiv 属性获取 HTML 中 content 属性信息的 HTTP 标头。

示例

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

<html>
   <head>
      <title>HTML http-equiv attribute</title>
      <meta name = "keywords" content = "HTML, meta tag, metadata" />
      <meta name = "description" content = "Description of the document" />
      <meta http-equiv = "refresh" content = "10" />
   </head>
   <body style = "background-color:gray">
      Document content goes here
   </body>
</html>

相关文章


有用资源