Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
pratice-demo/form.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64 lines (64 sloc)
2.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<form action="#" method="get"> | |
<div> | |
<label for="username">姓名 :</label> | |
<input id="username" type="text" name="username" placeholder="请输入用户名"> | |
</div> | |
<div> | |
<label for="password" >密码 :</label> | |
<input id="password" type="password" name="password" > | |
</div> | |
<div> | |
<label>性别 :</label> | |
<input type="radio" name="sex" value="male">男 | |
<input type="radio" name="sex" value="female">女 | |
</div> | |
<div> | |
<label>爱好 :</label> | |
<input type="checkbox" name="hobby" value="game">游戏 | |
<input type="checkbox" name="hobby" value="journey">旅游 | |
<input type="checkbox" name="hobby" value="sport">运动 | |
</div> | |
<div> | |
<label>评论 :</label> | |
<textarea name="judgement" cols="6" rows="7"></textarea> | |
</div> | |
<div> | |
<select name="name"> | |
<<<<<<< HEAD | |
<option value="xiaomi">华为</option> | |
<option value="huawei">小米</option> | |
<option ></option>oppo</option> | |
======= | |
<option value="huawei">华为</option> | |
<option value="xiaomi">小米</option> | |
<option value="oppo" selected>oppo</option> | |
>>>>>>> 8fd89c8f232d1f7cbc00f1a99b3c00c4115ebe52 | |
</select> | |
</div> | |
<input type="hidden" name="csrf" value="345623fdsd"> | |
<!-- 点击提交在Network可以看到name:"csrf" value:"345623fdsd"--> | |
<<<<<<< HEAD | |
<input type="submit" value="提交">提交 | |
<input type="button" value="提交"> | |
<!-- button不能提交信息 --> | |
<input type="reset" value="reset"> | |
======= | |
<input type="submit" value="提交"> | |
<!-- <input>的type的值为button不能提交信息 --> | |
<input type="button" value="提交"> | |
<!-- <button>的type的值为button不能提交信息,为type="submit"则可以提交,不设定type的类型值,则默认为type="submit" --> | |
>>>>>>> 8fd89c8f232d1f7cbc00f1a99b3c00c4115ebe52 | |
<button>提交</button> | |
<input type="file" accept="image/png, image/jpeg"> | |
</form> | |
</body> | |
</html> |