form使用

<!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>一个测试</title>
</head>
<body>
<div>
<form method="GET" action="">
username :<input type="text" name="username" value="请输入用户名"onfocus="this.value=''"onblur="this.value">
<p> password: <input type="password"></p>
 
<br>
 
<h1>请问你对web的态度是?</h1>
<select name="嘉文">
<option value="喜欢">喜欢</option>
<option value="一般">一般</option>
<option value="不喜欢">不喜欢</option></select>
<input type="submit">
</form>
</div>
 
</body>
</html>
原文地址:https://www.cnblogs.com/Jakeyang/p/9662714.html