在HTML文档中包含元数据
HTML<meta>标记用于声明HTML文档的元数据。以下是属性-
描述
关键字
生成器
修订
其他
过期
刷新
设置cookie
示例
您可以尝试运行以下代码以包含元数据-
<html>
<head>
<title>HTML meta tag</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>