HTML meta name attribute
Examples
Using the name attribute to define an HTML document description, keywords, author:
<head>
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,JavaScript">
<meta name="author" content="Hege Refsnes">
</head>
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,JavaScript">
<meta name="author" content="Hege Refsnes">
</head>
try it"
Browser Support
All major browsers support name attribute.
name attribute specifies the name of the metadata. specifies the name for the metadata.
name attribute specifies the content name information / value of the property.
Note: If the http-equiv attribute, you should not set the name attribute.
Differences between HTML 4.01 and HTML5
no.
grammar
<meta name="value">
Property Value
值 | 描述 |
---|---|
application-name | 规定页面所代表的 Web 应用程序的名称。 |
author | 规定文档的作者的名字。 实例: <meta name="author" content="Hege Refsnes"> |
description | 规定页面的描述。搜索引擎会把这个描述显示在搜索结果中。 实例: <meta name="description" content="Free web tutorials"> |
generator | 规定用于生成文档的一个软件包(不用于手写页面)。 实例: <meta name="generator" content="FrontPage 4.0"> |
keywords | 规定一个逗号分隔的关键词列表 - 相关的网页(告诉搜索引擎页面是与什么相关的)。 提示:总是规定关键词(对于搜索引擎进行页面分类是必要的)。 实例: <meta name="keywords" content="HTML, meta tag, tag reference"> |
HTML <meta> tag