下拉列表和文本域的代碼
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action='#'? method='get'>
<label for='username'>用戶名:</lable><input? name='username'? placeholder='請輸入用戶名' id='username'><br>
<label for='password'>密碼:</lable><input? type='password'? name='password'? placeholder='請輸入密碼' id='password'><br>
性別:男<input? type='radio'? name='gender' value='male' checked='checked'>女<input? type='radio'? name='gender' value='female'><br>
<br>
愛好:<input? type='checkbox'? name='hobby' value='shopping' checked='checked'>逛街<input? type='checkbox'? name='hobby' value='eat'>吃飯
<input? type='checkbox'? name='span'? checked='checked'>桑拿
<br>
圖片:<input type='file'? name='file'><br>
隱藏域:<input type='hidden' name='id'? value='aaa'><br>
取色器:<input type='color'? name='color'><br>
生日:<input type='data' name='birthday'><br>
生日:<input type='datatime-local' name='birthday'><br>
郵箱:<input type='email' name='emali'><br>
年齡:<input type='number' name='age'><br>
省份:<select name='provice'>
?? ??? ?<option? value=''>---請選擇---</option>
?? ??? ?<option? value='1'>北京</option>
?? ??? ?<option? value='2'>上海</option>
?? ??? ?<option? value='3' selected>廣州</option>
?? ?</select><br>
自我描述:<textarea row='5' col='20' name='des'>
?? ??? ??? ?
?? ??? ?</textarea><br>
<input type='submit' value='登錄'>
<input type='button' value='一個按鈕'><br>
<input type='image' src='image/2.png' value='圖片按鈕'><br>
</form>
</body>
</html>
標簽: