属性

1、 http-equiv
2、 name

name属性

keywords(关键字)

用于告诉搜索引擎网页的关键字。

  1. <meta name="keywords" content="前端知识学习" />

description(网站内容的描述)

用于告诉搜索引擎,网站的主要内容。

  1. <meta name="description" content="html中meta标签的各个属性" />

viewport(移动端窗口)

用于移动端网页。

  1. <meta name="viewport" content="" />

robots(定义搜索引擎爬虫的索引方式)

用于告诉爬虫那些页面需要索引,那些页面不需要索引。
参数有all,none,index,noindex,follow,nofollow。默认是all。

  1. <meta name="robots" content="none"/>

http-equiv属性