獲取 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>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP