在HTML文档中包含元数据

原创
ithorizon 5个月前 (10-19) 阅读数 50 #HTML

HTML 标签用于声明HTML文档的元数据。以下是属性:

属性

描述

Name

立即学习“前端免费学习笔记(深入)”;

author

description

keywords

generator

revised

others

属性的名称。

content

文本

定义与http-equiv或name关联的元信息。

http-equiv

content-type

expires

refresh

set-cookie

将content属性连接到HTTP头。

scheme

文本

定义用于解释content属性值的格式。

示例

您可以尝试运行以下代码来包含元数据:

<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>

以上就是在HTML文档中包含元数据的详细内容,更多请关注IT视界其它相关文章!



热门