赞
踩
目录
这篇主要是对列表、表格、表单的使用来做一个记录!!
<ul>
<li>榴莲</li>
<li>香蕉</li>
<li>苹果</li>
<li>哈密瓜</li>
<li>火龙果</li>
</ul>
<ol>
<li>张三:103</li>
<li>李四:102</li>
<li>王五:100</li>
</ol>
<dl>
<dt>帮助中心</dt>
<dd>账户管理</dd>
<dd>购物指南</dd>
<dd>订单操作</dd>
</dl>
只有同一个结构标签中的单元格能合并, 不能跨结构标签合并(不能跨:thead、tbody、tfoot)
<table border="1" width="500" height="20">
<caption><h1>员工名单</h1></caption>
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>王五</td>
<!-- 跨行合并 -->
<td rowspan="2">男</td>
<td>20</td>
</tr>
<tr>
<td>李四</td>
<td>23</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>总结</td>
<!-- 跨列合并 -->
<td colspan="2">都非常的优质</td>
</tr>
</tfoot>
</table>
文本框:<input type="text">
密码框:<input type="password">
单选框:<input type="radio">
多选框:<input type="checkbox">
上传文件:<input type="file">
提交按钮:<input type="submit">
重置按钮:<input type="reset">
普通按钮:<input type="button">
<input type="text" placeholder="请输入账户">
<input type="password" placeholder="请输入密码">
性别:<input type="radio" name="sex" checked>男<input type="radio" name="sex">女
同意:<input type="checkbox" checked>
上传文件<input type="file" multiple>
<form action="">
账号:<input type="text">
密码:<input type="password"><br>
<input type="submit" value="确认">
<input type="reset">
</form>
<button>我是按钮</button>
<button type="submit">提交按钮</button>
<button type="reset">重置按钮</button>
<button type="button">普通按钮,没有任何功能</button>
<select name="" id="">
<option value="" selected>北京</option>
<option value="" >上海</option>
<option value="">广州</option>
</select>
个性签名:<textarea name="" id="" cols="20" rows="10">请输入个性签名(50字以内)</textarea>
<input type="radio" name="sex" id="nan"> <label for="nan">男</label>
<input type="radio" name="sex" id="nv"> <label for="nv">女</label>
民族:
<label><input type="radio" name="a"> 汉</label>
<label><input type="radio" name="a">其他民族</label>
<header>网页头部</header>
<nav>网页导航</nav>
<footer>网页底部</footer>
<aside>网页侧边栏</aside>
<section>网页区块</section>
<article>网页文章</article>
<p>这要放空格 ,放好了</p>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>简单案例-----表格</title>
- </head>
- <body>
- <table border="1" width="500" height="50">
- <caption>
- <h1>优秀学生信息表格</h1>
- </caption>
- <thead>
- <tr>
- <th>年级</th>
- <th>姓名</th>
- <th>学号</th>
- <th>班级</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th rowspan="3">高三</th>
- <th>张三</th>
- <th>01</th>
- <th>一班</th>
- </tr>
- <tr>
- <th>李四</th>
- <th>02</th>
- <th>一班</th>
- </tr>
- <tr>
- <th>王五</th>
- <th>03</th>
- <th>二班</th>
- </tr>
- </tbody>
- <tfoot>
- <tr>
- <th>总人数</th>
- <th colspan="3">3</th>
- </tr>
- </tfoot>
- </table>
-
- </body>
- </html>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>简单案例-----表单</title>
- </head>
- <body>
- <h1>欢迎注册</h1>
- <p>已有账号?<a href="#">登录</a></p>
- <form action="">
- <p>
- 用户名:<input type="text" placeholder="请输入用户名">
- </p>
- <p>
- 密码:<input type="password" placeholder="请输入六位数密码">
- </p>
- <p>
- 手机号:<input type="text" placeholder="+86">
- </p>
- <p>
- 性别:<label> <input type="radio" name="sex" checked>男</label>
- <label > <input type="radio" name="sex">女<br></label>
- </p>
- <p>
- 所在城市:
- <select name="" id="">
- <option value="" selected>广州</option>
- <option value="">上海</option>
- <option value="">深圳</option>
- </select>
- </p>
- <p>
- 兴趣爱好:
- <label><input type="checkbox" checked>游泳 </label>
- <label><input type="checkbox">滑雪 </label>
- <label><input type="checkbox">赛马 </label>
- <label><input type="checkbox">篮球 </label>
- <label><input type="checkbox">其它 </label>
- </p>
- <p>
- 个人签名:<br>
- <textarea name="" id="" cols="30" rows="10">请输入个性签名(50字以内)</textarea>
- </p>
- <p>
- <button type="submit">提交注册</button>
- <input type="reset" value="重新注册">
- </p>
- <p>
- <label><input type="checkbox" >同意相关<a href="#">条款</a></label>
- </p>
- </form>
- </body>
- </html>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。