<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function sayHello(){
alert("Hello");
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
用户名:<input type="text" nsme="username" id="username" readonly="readonly"/><!-- readonly设置该文本框为只读-->
<br>密码:<input type="password" name="passwoed" id="password"/>
<br>性别:<input type="radio" name="sex" value="男" checked="checked">男 <input type="radio" name="sex" value="女">女 <!--checked设置按钮默认值-->
<br> 血型:<input type="radio" name="bloodType" value="A"/>A
<input type="radio" name="bloodType" value="B"/>B
<input type="radio" name="bloodType" value="AB"/>AB
<input type="radio" name="bloodType" value="O"/>O <br>
爱好:<input type="checkbox" name="aihao" value="吃">吃
<input type="checkbox" name="aihao" value="睡">睡
<input type="checkbox" name="aihao" value="电影">电影
<input type="checkbox" name="aihao" value="音乐">音乐 <br>
所在城市:<select name="city" id="city">
<option value="1">北京</option>
<option value="2">上海</option>
<option value="3">广州</option>
<option value="156">驻马店</option>
</select><br>
个人说明:<textarea name="info" id="info" rows="8" cols="40">很帅,很有前途,有才,有钱。
</textarea><br>
上传照片:<input type="file" name="photo" id="photo"/><br>
<input type="hidden" name="userId" id="userId" value="1234"/>
<input type="submit" value="提交" disabled="disabled"/>
<input type="reset" value="重置" />
<input type="button" value="按钮" οnclick="sayHello()"/>
</form>
</body>
</html>
05-17
09-16
09-16