HTML
1.HTML:超文本编辑语言。
- html由标签组成:html数据封装在标签中,可以通过标签的属性值的改变对封装内数据操作。
- html代码范围:<html></html>,在该范围有两部分,头标签<head>和体标签<body>。
<html>
<head></head>
<body></body>
</html>
- head:网页的一些属性信息。比如:标题。 body:网页显示的数据。
- 标签特点:对数据进行封装,有开始标签和结束标签。但有些标签只体现单一功能,所以这样的标签在内部结束。如:<br /> <hr /> <img /> <input />。
- 标签格式:<标签名 属性名=“属性值”>数据<标签名>
2.常见标签:
-
字体:<font>
<font size=" " color="#FFFFFF ">数据</font>
小于号(<) | 大于号(>) | 空格 | 分号(“) | 地址符(&) |
<; | >; |  ; | " ; | &; |
-
列表标签:<dl></dl>
<body>
<ol>
<li>windows</li>
<ul type="disc">
<li>win 7</li>
<li>win 8</li>
</ul>
<li>linux</li>
<ol>
<li>centos</li>
<li>redhat</li>
</ol>
</ol>
</body>
-
图像标签:<img>
<body>
<img src="" border="0" usemap="#planetmap" alt="Planets" />
<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href =" " target ="_blank" alt="Venus" />
</map>
-
表格标签:<table>
<body>
<table cellpadding="5" cellspacing="0">
<caption>标题标签</caption>
<tr>
<td colspan="2"></td>
<tr>
<th rowspan="2"></th>
</table>
</body>
- 超链接:<a>
<a name="top">顶部</a>
<a href="#top">回到顶部</a>
- 表单标签:<form>
文本框 | 密码框 | 单选框 | 复选框 | 文件上传 | 隐藏组件 | 按钮组件 | 重置 | 提交 | 图像按钮 |
text | password | radio | checkbox | file | hidden | button | reset | submit | image |
<select >
<option></option>
</select>
<textarea>:文本区域
<input type="text" id="user" />
-
框架结构标签<frameset>
<frame src="1.html" />
<frame src="2.html" />
</frameset>