慕后端9509893
2018-07-01 17:37
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type"content="text/html"charset="utf-8">
<title>请输入你的账号</title>
</head>
<body>
<from method="post" action="save.php">
<label for="usename">账号</label>
<input type="text"name="usename"value="5201314" />
<br>
<label for="pass">密码</label>
<input type="password"name="password"value="" />
<br>
<input type="submit" value="提交"name="submit"/>
<input type="reset"value="重置"name="reset" />
</from>
</body>
</html>
表单是“form”,不是“from”
你的username打少了个字母r
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>表单标签</title> </head> <body> <form method="post" action="save.php"> <label for="username">用户名:</label> <input type="text" name="username" id="username" value="" /> <br /> <label for="pass">密码:</label> <input type="password" name="pass" id="pass" value="" /> <br /> <input type="submit" value="确定" name="submit" /> <input type="reset" value="重置" name="reset" /> </form> </body> </html>
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>表单标签</title></head><body><form method="post" action="save.php"> <label for="username">用户名:</label> <input type="text" name="username" id="username" value="" /> <br /> <label for="pass">密码:</label> <input type="password" name="pass" id="pass" value="" /> <br /> <input type="submit" value="确定" name="submit" /> <input type="reset" value="重置" name="reset" /></form> </body></html>
初识HTML(5)+CSS(3)-升级版
1225806 学习 · 18234 问题
相似问题