<head> :html
<title> :标题标签,其内容显示在浏览器的顶部前端
<meta> :网页的编码(注意用什么编码,文件就要用相应的编码保存)浏览器
如今:<meta charset="utf-8"/>也能够填GB2312或GBK工具
之前:<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>网站
为文档提供一些附加信息,可被浏览器、搜索引擎或网页制做工具使用的信息。如文档做者、网页有效期、关键字列表等 ui
设置格式 <meta name="参数" content="参数值"/> 或 <meta http-equiv="参数" content="参数值"/>搜索引擎
例:<meta name="keywords" content="binary trees, linked lists, stacks"/> //设置关键字 编码
<meta name="Anthor" content="carson"/>//设置做者 url
<meta name="Generator" content="FrontPage"/> //设置网页生成工具spa
*http-equiv和name只能二取一
*http-equiv主要是向浏览器传递一些信息
*name则向搜索引擎和制做工具提供信息
例:<meta http-equiv="Expires" content="Tue,08 Dec 2009 00:00:00GMT"/> //设置网页过时时间
<meta http-equiv="refresh" content="5;url=http://www.zhku.edu.cn"/> //告诉浏览器5秒后网页刷新到zhku网站
<body> :