表格,登陆表单

<div>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<form action="http//www.baidu" method="">
			
		
			<table border="1px" cellspacing="0">
				<colgroup span="4" width="100px">
				<tr height="30px">
					<td rowspan="4" align="center">总体信息</td>
					<td colspan="2"></td>
				</tr>
				<tr height="30px">
					<td align="right">用户名:</td>
					<td><input type="text" name="loginname"></td>
				</tr>
				<tr height="30px">
					<td align="right">密码:</td>
					<td align="right"><input type="password" name="pwd"></td>
				</tr>
				<tr height="30px" align="center">
					<td colspan="2">
						<input type="submit" value="提交">
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</form>
		
	</body>

table表格 tr表行 t单元格 th=居中的td

table

  1. border="100px"
  2. cellspacing=0
  3. colgroup   span="6"   width="100px"
  4. colgroup   span="1"   width="200px"

tr

  • height="100px"
  • align="center"   < !--整行居中-->

td

  1. width="100px"
  2. align="left"
  3. rospan="3"
  4. colspan="3"
``` <div>
		<table border="1px" cellspacing="0">
			<colgroup span="4" width="100px">
			<tr height="30px">
				<td rowspan="4" align="center">总体信息</td>
				<td colspan="2"></td>
			</tr>
			<tr height="30px">
				<td align="right">用户名:</td>
				<td><input type="text" name="loginname"></td>
			</tr>
			<tr height="30px">
				<td align="right">密码:</td>
				<td align="right"><input type="password" name="pwd"></td>
			</tr>
			<tr height="30px" align="center">
				<td colspan="2">
					<input type="submit" value="提交">
					<input type="reset" value="重置">
				</td>
			</tr>
		</table>
	</form>
	
</body>

```
form
  1. action="链接" method=" <
input
  1. input type="text"文本输入框name="loginname"自定义的名称
    value="属性名称"
    	|password| 密码输入框 ||-radio-|-单选框-|		|file| 文件选择框 |
    	| checkbox | 复选框 |	|button| 普通按钮 |
    	|-submit-|-提交按钮-|	| reset | 重置按钮 |
    
    	<li>name="loginname"用来登陆的名字
    	<li>name="pwd"表示密码
    
知识点总结
  1. form必须有action属性,表示提交地址
  2. 所有需要提交的数据,iuput必须要name属性
  3. input按钮的文字,需要用value属性表示
  4. input必须放在form标签内才能提交
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值