HTML表单基本格式与代码

咱们先来看下今天咱们需要学习的内容,理解起来很简单,像我这种英语不好的只是需要背几个单词

在HTML中创建表单需要用到的最基本的代码和格式

 1 <form method="post/get" >
 2 
 3 <input type="text" />    
 4 <input type="password" />    
 5 <input type="hidden" />    
 6 <textarea>textarea>    
 7 
 8 <input type="submit" />    
 9 <input type="button />    
10 image" />    
11 <input type="reset" />    
12 
13 <input type="redio" name="" checked="checked" value="" />    
14 <input type="checkbox" name="" checked="checked" value=""/>    
15 <input type="file" />    
16 <select>    
17 <option value="值">内容option>
18 <option value="值">内容option>
19 <option value="值">内容option>
20 <option value="值">内容option>
21 select>
22 form>

以上就是咱们需要记住的一点东西

看起来很复杂、很麻烦

咱们来理一下思路

总共分为三大类,每类分为四种,抛出textarea\select剩下的都是input tpye= 这个样式开头的

那 文本类的就是下面的四个

input type="text"

.................password

.................hidden