一、网页主题标记
1.网页背景色 bgcolor 2.文字颜色text 3.链接文字属性 link 4.边距 margin (上边距topmargin 左边距leftmargin) 5.页面注释标记<!-- --> 6.<meta>可以设置网页的定时跳转。 语法:<meta http-equiv="refresh" content="跳转的时间;url=跳转到的地址">
案例如下:创建一个简单网页,设置背景颜色为红色和文字颜色为白色。上边距为100,左边距为100。跳转到“床前明月光,疑是地上霜。举头望明月,低头思故乡",地址为“原诗.html”
第一个页面代码为:
<html>
<head>
<meta http-equiv="refresh" content="8;url=原诗.html">
</head>
<body bgcolor="#FF0033" text="#FFFFF" topmargin ="100" leftmargin="100">
<p>静夜思</p>
</body>
</html>
链接的网页代码是:
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; | |
charset=gb2312"/> | |
</head> | |
<body> | |
<center> | |
<body bgcolor="#FF0033" text="#FFFFF" topmargin | |
="100" > | |
<p>床前明月光</p> | |
<p>疑是地上霜</p> | |
<p>举头望明月</p> | |
<p>低头思故乡</p> | |
</center> | |
</body> | |
</html> |
其中<meta>里边的链接为自动跳转。在主体<body>里添加<a href=" "></a>为点击跳转。