本系列博客汇总在这里:JavaWeb_HTML 汇总
目录
- 示例
示例
<html>
  
  <head>
    <title>www.weiyuxuan.com</title>  
  
  </head>
  
  <body>
    
    <h1>HTML表单</h1>
    
    <form action="/xxx/xxx.jsp" method="post">
      
      <input type="hidden" name="userId" value="1">
      
      <br/>用户名:     <input id="username" type="text" name="username" size="40" value="请输入用户名" readonly="readonly" disabled="disabled"><br/>
      
      <br/>密  码:  <input id="password" type="password" size="40" readonly="readonly" value="123"><br/>
      
      <br/>性  别:  <input id="man"  type="radio" value="1" name="gender">男  
      
                  <input id="woman" checked="checked" value="2" type="radio" name="gender">女<br/>
                        
      <br/>爱  好:  <input type="checkbox" checked name="favor" value="1">篮球 
      
                  <input type="checkbox" name="favor" value="2">足球 
                              
                  <input type="checkbox" name="favor" value="3">乒乓球 <br/>
                              
      <br/>头  像:  <input id="pic" type="file" name="pic"><br/>
      
      <br/>工  资:  <select id="sal" name="sal">
        
                    <option value="">--请选择--</option>
                            
                    <option value="6000">6000  </option>
                            
                    <option value="8000">8000  </option>
                            
                    <option value="10000" selected>10000</option>
                              
                  </select><br/>
                              
      <br/>岗  位:  <select id="job" size="3" name="job" multiple>
        
                    <option value="1">中级工程师</option>
                                
                    <option value="2">测试工程师</option>
                                
                    <option value="3">架构师    </option>
                              
                  </select><br/>
                              
      <br/>个人介绍:      <textarea name="introduce" rows="3" cols="40" >请输入...</textarea><br/><br/>
      
                  <input name="reset" type="reset" value="重置">
                    
                  <input name="submit" type="submit" value="提交">
                    
                  <input name="button" type="button" value="按钮提交">
    </form>
    
  </body>
  
</html>
如有错误,欢迎指正!










