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>
<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>
相关文章推荐
- html表格的例子
- HTML中的列表
- html 发送短信并且带编辑好的内容
- Chapter 1. HTML---标签、表格
- Intellij idea liveTemplate,方法,类,Html 自定义注释
- HTML meta标签详解
- [Repost]Custom Elements defining new elements in HTML
- HTML img.src图片不存在,则显示另一张图片
- html常用标签
- taglib-html:浏览器会自动解析
- HTML中让边框变成圆形并且带有阴影
- HTML、XHTML XML和DHTML的区别
- MVC HtmlHelper用法大全
- html中让背景完全填充容器
- XML与 HTML
- C#去掉HTML标记
- htmlcleaner 使用示例.
- html书签文件去重
- Make Notepad++ auto close HTML/XML tags after the slash(the Dreamweaver way)
- XHTML介绍