<html>
<head>
<meta name="keywords" content="关键字1,php, html,css"/>
<meta name="description" content="网页的描述"/>
<meta name="robots" content="all/none/index/noindex/follow/nofllow"/>
<!--告诉搜索引擎爬取设置-->
<meta name="author" content="作者"/>
<meta name="copyright" content="版权"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="3;url=http://www.baidu.com" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Windows-Target" content="_top" />
<!--不允许被嵌入-->
<meta http-equiv="expires" content="0" />
<!--禁止浏览器使用缓存-->
<title>标题</title>
<base href="www.bingo.com" />
<!--用于设定浏览器中文件的绝对路径-->
<link rel="stylesheet" type="text/css" href="css/test.css" />
<!--链接CSS文件-->
</head>
<body>
<p>测试link标签</p>
</body>
</html>
<body>标签中的属性有如下等
<body text="文本颜色" bgcolor="背景颜色" background="背景图片" link="连接颜色"
vlink="点击连接颜色" alink="鼠标放上面时的颜色" topmargin="上边距大小">
<p>测试</p>
</body>
提倡用样式CSS控制,不写在body中,如下
<html>
<head>
<title>标题</title>
<!--用样式控制body-->
<style>
body{
margin: 0px;
padding: 0px;
background: blue;
color:red;
}
</style>
</head>
<body >
<p>测试</p>
</body>
</html>
注:所有元素的通用属性Id name class style