HTML的标签
排版标签
<br/> 换行
  空格
<hr/> 水平线
<p></p> 段落标签
<div></div>区域标签 默认换行
<span></span> 默认不换行
字体标签
<font></font>
color: 颜色
size:字体的大小
face:字体的类型
<b></b> 粗体标签
<i></i> 斜体标签
<marquee></marquee> 滚动的字幕
标题标签
<h1></h1>
...
<h6></h6>
特殊字符(查看文档)
列表标签
<dl>
<dt></dt>
<dd></dd>
</dl>
有序列表和无序列表
有序:
<ol type="a" start="3">
<li></li>
</ol>
无序:
<ul type="">
<li></li>
</ul>
图片标签

超链接的标签
<a></a>
链接资源
通过href=" "
定位资源
通过name 定义锚点
返回需要使用href="#锚点的名称"
表格标签
<table border="1" width=" " height=" "> 声明表格的范围
<caption>表格的标题</caption>
<tr align="显示文字对齐方式"> 行
<th></th> 默认居中加粗
</tr>
<tr> 行
<td></td>
行合并 rowspan="2"
列合并 colspan="2"
</tr>
</table>
表单标签
<form action="表单提交地址" method="提交方式">
表单的提交方式?
最常用的是get和post。
get将参数列表显示在地址栏上,post不显示,封装到请求体中
get安全级别较低,post较高
get方式不支持大数据,post支持
<input type="text" name="username"> 文本框
<input type="password" name="password"> 密码框
<input type="radio" name="sex" value="0" checked="checked">男
<input type="checkbox" name="love" value="0">篮球
<input type="file" name="myfile"> 上传文件
<input type="hidden" name="userid" value="001"> 隐藏组件
<input type="button" value="我是按钮">
<input type="image" src="引入一张图片"> 提交
<select name="city"> 多选框
<option value="bj">数据</option>
</selecte>
<textarea rows=" " clos=" "></textarea> 文本域
<input type="reset" value="重置">
<input type="submit" value="提交">
框架标签
<frameset rows="150,*" >
<frame src="链接html" name="top">
<frame src="链接html" name="bottom">
</frameset>
网友评论