1.第一行必须是<!DOCTYPE html>
2.主要包括5组标签
<html> :整个网页的根元素
<head> :
<title> :标题标签,其内容显示在浏览器的顶部
<meta> :网页的编码(注意用什么编码,文件就要用相应的编码保存)
现在:<meta charset="utf-8"/>也可以填GB2312或GBK
以前:<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
为文档提供一些附加信息,可被浏览器、搜索引擎或网页制作工具使用的信息。如文档作者、网页有效期、关键字列表等
设置格式 <meta name="参数" content="参数值"/> 或 <meta http-equiv="参数" content="参数值"/>
例:<meta name="keywords" content="binary trees, linked lists, stacks"/> //设置关键字
<meta name="Anthor" content="carson"/>//设置作者
<meta name="Generator" content="FrontPage"/> //设置网页生成工具
*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> :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>顾七办公</title>
</head>
<body>
<p>顾七学院</p>
</body>
</html>