加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

HTML表单_动力节点Java学院整理

发布时间:2020-03-18 23:48:19 所属栏目:MsSql教程 来源:站长网
导读:副标题#e# HTML 表单用于接收不同类型的用户输入,用户提交表单时向服务器传输数据,从而实现用户与Web服务器的交互。 2.表单的工作机制 3.表单定义(form/form标签) HTML表单是一个包含表单元素的区域, 表单使用form 标签创建。表单能够包含input元素,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 01 Transitional//EN" ""> <html> <head> <title>注册页面</title> <style type="text/css"> table { width: 450px; border: 1px solid red; background-color: #FFCB29; border-collapse: collapse; } td { width: 200; height: 40px; border: 1px solid black; } span { background-color: red; } </style> </head> <body style="background-color: blue; background-image: url(/image/bearjpg); background-repeat: repeat;"> <form name="registerform" id="form1" action="" method="post"> <table align="center" cellspacing="0" cellpadding="0"> <tr> <td> 用户名: </td> <td> <input type="text" /> </td> </tr> <tr> <td> 密码: </td> <td> <input type="password" /> </td> </tr> <tr> <td> 确认密码: </td> <td> <input type="password" /> </td> </tr> <tr> <td> 请选择市: </td> <td> <select> <optgroup label="中国"> <option>甘肃省</option> <option>河南省</option> <option>上海市</option> </optgroup> <optgroup label="American"> <option>California</option> <option>Chicago</option> <option>New York</option> </optgroup> </select> </td> </tr> <tr> <td> 请选择性别: </td> <td> <input type="radio" name="sex" id="male" value="0" checked="checked" /><label for="male">男</lable> <input type="radio" name="sex" id="fmale" value="1" /><label for="fmale">女</label> <input type="radio" name="sex" id="secret" value="2" /><label for="secret">保密</label> </td> </tr> <tr> <td> 请选择职业: </td> <td> <input type="radio" id="student" name="profession" /><label for="student">学生</label> <input type="radio" id="teacher" name="profession" /><label for="teacher">教师</label> <input type="radio" id="others" name="profession" /><label for="others">其他</label> </td> </tr> <tr> <td> 请选择爱好: </td> <td> <fieldset> <legend>你的爱好</legend> <input type="checkbox" name="hobby" id="basketboll" checked="checked" /><label for="basketboll">打篮球</label> <input type="checkbox" name="hobby" id="run" /><label for="run">跑步</label> <input type="checkbox" name="hobby" id="read" /><label for="read">阅读</label> <input type="checkbox" name="hobby" id="surfing" /><label for="surfing">上网</label> </fieldset> </td> </tr> <tr> <td> 备注: </td> <td> <textarea cols="30">这里是备注内容</textarea> </td> </tr> <tr> <td> &nbsp; </td> <td> <input type="submit" value="提交" /> <input type="reset" value="重置" /> </td> </tr> </table> </form> </body> </html>

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读