html基础--body内部标签
2018-07-18 14:45
543 查看
1.块级标签(独占一行)
H系列标签,p标签,div标签
2.行内标签
span标签
3.form标签
3.1文本输入框
3.2密码输入框
3.3按钮
3.4提交
3.5单选
3.6多选
3.7上传
3.8重置
3.9多行文本框
3.10.1下拉框
3.10.2select分组
4.a标签用法
target=""
4.1链接
4.2锚点
5.img图片
6.ul无序列表
7.ol有序列表
8.dl
9.table
10.label标签
H系列标签,p标签,div标签
2.行内标签
span标签
3.form标签
<form action="表单提交数据的地址" method=“GET/POST”></form>
3.1文本输入框
<input type="text" />
3.2密码输入框
<input type="password" />
3.3按钮
<input type="button" value=“按钮” />
3.4提交
<input type="submit" value="提交"/>
3.5单选
<input type="radio" name="radio1" value="radio1" checked="checked"/> <input type="radio" name="radio1" value="radio2"/>
3.6多选
<input type="checkbox" name="checkbox1" value="checkbox1"/> <input type="checkbox" name="checkbox1" value="checkbox2"/>
3.7上传
<input type="file" name="filename"/> 需要指定<form enctype="multipart/form-data">
3.8重置
<input type="reset" value="重置" />
3.9多行文本框
<textarea name="moretext"></textarea>
3.10.1下拉框
<select name="select_test" > size="1"#控制显示长度 multiple="multiple"#控制是否多选 <option value="1" >1</option> <option value="2" >2</option> <option value="3" >3</option> </select>
3.10.2select分组
<select name="select_test" > <optgroup label="1"> <option value="1" >1.1</option> <option value="2" >1.2</option> <option value="3" >1.3</option> </optgroup> <optgroup label="2"> <option value="1" >2.1</option> <option value="2" >2.2</option> <option value="3" >2.3</option> </optgroup> </select>
4.a标签用法
target=""
4.1链接
<a href="http://wwww.baidu.com">baidu</a>
4.2锚点
<a href="#t1">1</a> <a href="#t2">2</a> <a href="#t3">3</a> <div id="#1">1</div> <div id="#2">2</div> <div id="#3">3</div>
5.img图片
<img src="路径" alt=“图片” title="图片"/>
6.ul无序列表
<ul> <li>1</li> <li>2</li> <li>3</li> </ul>
7.ol有序列表
<ol> <li>1</li> <li>2</li> <li>3</li> </ol>
8.dl
<dl> <dt>标题</dt> <dd>1</dd> <dd>2</dd> <dd>3</dd> </dl>
9.table
<table> <thead> <tr> <td>1</td><td>1</td> </tr> </thead> <tbody> <tr> <td>1.1</td><td>1.2</td> </tr> <tr> <td>2.1</td><td>2.2</td> </tr> </tbody> </table> 合并单元格 <td colspan="2"></td> #横向合并 <td rowspan="2"></td>#纵向合并
10.label标签
关联输入框 <label for="username">用户名:</label> <input id="username" type="text" name="username" />
相关文章推荐
- HTML基础 body标签link属性设置带有超链接的文本未点击时候的颜色
- HTML基础 body标签text属性将普通文本颜色改为白色,实现有趣的密文效果
- 一些自学的HTML代码(html基础东西 body font h标签属性等 )
- HTML基础 body标签alink属性设置带有超链接的文本点击时变的颜色
- HTML基础(body标签属性)
- HTML基础---认识标签(body,p,hx,span,br, blockquote,q,address,code,pre)
- HTML基础(body标签属性)
- html基础 base target 设置a标签target属性的缺省值
- html,基础'标签'总结
- HTML基础 pre标签编辑的时候什么格式,显示的时候就什么格式
- HTML+CSS基础(四):认识html标签
- html 标签的使用--网页内部跳转
- HTML新人基础学习1.2—HTML的常用的标签语法
- HTML基础:META标签设置了utf-8还是乱码的问题
- 【HTML基础】常用基础标签
- HTML&CSS基础学习笔记1.24-input标签的单选与多选
- 网页制作HTML基础标签代码大全
- jQuery基础 - 如何处理HTML标签属性
- HTML&CSS基础学习笔记1.19-DIV标签1
- HTML body标签的属性