獲取 HTTP 頭以獲取 HTML 中 content 屬性的資訊


使用 http-equiv 屬性可以獲取 HTTP 頭以獲取 HTML 中 content 屬性的資訊。

示例

你可以嘗試執行以下程式碼來實現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>

最後更新於: 2020-03-03

257 瀏覽量

開啟你的 事業

完成課程獲取認證

開始吧
廣告
© . All rights reserved.