您的位置:首页 > Web前端 > HTML

html表单的例子

2016-05-18 17:55 477 查看
<html>

<head>

<title>表单的例子</title>

</head>

<body>

<form action="table.html" method="post" target="_blank">

用 户 名:<input type="text" name="username" value="今天天气很好" size="20" maxlength="3"/><br/><br>

密 码:<input type="password" name="userpwd" value="123456" size="20" maxlength="3"/><br/><br/>

性 别:<input type="radio" value="1" name="sex" checked/>男

<input type="radio" value="2" name="sex"/>女<br/><br>

爱 好:<input type="checkbox" value="" name="hobby"/>打乒乓球

<input type="checkbox" value="" name="hobby"/>打篮球

<input type="checkbox" value="" name="hobby" checked/>打羽毛球<br/><br/>

文 件 域:<input type="file"/><br/><br/>

隐 藏 域:<input type="hidden" value="123456"/><br/><br/>

多行文本框:<textarea name="txt" rows="5" cols="30" disabled readonly>今天天气很好</textarea><br><br>

地 区:<select>

<option value="1"/>北京

<option>上海</option>

<option selected>广州</option>

</select><br/><br/>

<input type="submit" value="提交"/>  

<input type="reset" value="重置"/>  

<input type="button" value="自定义按钮">

</form>

</body

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: