一、使用到的标签用法介绍
1.演示标签代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="/demo/demo_form.asp">
First name:<br>
<input type="text" name="firstname" value="Lalisa">
<br>
Last name:<br>
<input type="text" name="lastname" value="Manoban">
<br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
2.标签使用具体介绍
1. < form action=“获取/提交的地址” method=“post/get”>
post表示提交,get表示获取
get与post的区别:
二、表单制作代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="https://提交的地址" method="post">
<table width="600px" border="1px" cellspacing="0" cellpadding="">
<tbody>
<tr height="40px">
<td rowspan="4" align="center" style="color: coral;">总体信息</td>
<td colspan="2"></td>
</tr>
<tr height="40px">
<td align="right">用户名:</td>
<td>
<input type="text" name="loginname" id="" value="" />
</td>
</tr>
<tr height="40px">
<td align="right">密码:</td>
<td>
<input type="password" name="password" id="" value="" />
</td>
</tr>
<tr height="40px">
<td colspan="2" align="center">
<input type="submit" name="" id="" value="提交" style="width: 80px;height:30px;background-color: antiquewhite;" />
<input type="reset" name="" id="" value="重置" style="width: 80px;height:30px;background-color:blueviolet;" />
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
三、结果显示