HTML 语 法 精 编
Html=HyperText Markup Language(超文本标记语言)
一、网页整体布局
<html>
<head>
----------------------------------------------------------------------------------------------------------------------------------------------------------
<Meta http-equiv=”content-type” content=”text/html;charset=”字符集”> 字符集包括:GB2312、Big5、UFI-8 等等
<Meta name=”generator” content=”制作此网页所用的工具”>
<Meta name=”author” content=”网页的作者”>
<Meta name=”Keywords” content=”设置搜索引擎的关键词,多个用逗号隔开”>
<Meta name=”description” content=”告诉搜索引擎此网页的主要内容”>
<Meta http-equiv=”refresh” content=”秒数;url=一个网页”> 只有秒数就刷新页面
<title>网页的窗口标题</title>
</head>
----------------------------------------------------------------------------------------------------------------------------------------------------------
<body background=”地址” bgcolor=”颜色” text=”颜色” leftmargin=”数值” topmargin=”数值”>
语法解释
Background:背景图像的地址 bgcolor:文档背景颜色 text:页面字体颜色 leftmargin:设定页面的左边距 topmargin:设定页面的上边距
网页的主体内容
</body>
</html>
二、部分特殊标记
1.>注释文字:<!-- 说明的内容 -->
2.> (半角空格);©(特殊字符©); ®(特殊字符®)
3.><b></b>(黑体);<i></i>(斜体);<u></u>(下划线);<tt></tt>打字机体;<sup></sup>(上标);<sub></sub>(下标)
三、关于文本的修饰