<meta name=" " content=" " />标签经常使用功能:javascript
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>显示在网页的标题栏</title> </head> <body> Hello Web!` </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="keywords" content="html5,javascript,前端,全栈"/> <title>设置网页的关键字</title> </head> <body> Hello Web!` </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="description" content="这是用来描述整个网页的。"/> <title>指定网页的描述</title> </head> <body> Hello Web!` </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="refresh" content="3; url=./cat.html"/> <title>请求的重定向(url=“能够是相对路径html”)</title> </head> <body> Hello Web!` </body> </html>
属性 | 值 | 描述 |
---|---|---|
content | some_text | 定义与 http-equiv 或 name 属性相关的元信息 |
属性 | 值 | 描述 |
---|---|---|
http-equiv |
|
把 content 属性关联到 HTTP 头部。 |
name |
|
把 content 属性关联到一个名称。 |
scheme | some_text | 定义用于翻译 content 属性值的格式。 |