The content of this article is to introduce to you what are the inner tags of the form in HTML? how to use ? . It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Form tags
1. Ordinary text box:
<input type="text" name="名称" value="值" value="不写value默认为空"/>
2. Password box:
<input type="password" name="名称" value="值" value="不写value默认为空"/>
3. Radio button:
<input type="radio" name ="一组名称" value="值" />
4. Multi-select box:
<input type="select" name="一组名称" value="值"/>
5. Drop-down menu:
<select name=”名称”> <option value=”值”>描述</option> <option value=”值”>描述</option> <option value=”值”>描述</option> <option value=”值”>描述</option> </select>
6. Button:
Submit button:
<input type=”submit” value=”显示到按钮上的名称”/>
Image submission:
<input type=”imaget” src=”图片地址” value=””/>
Ordinary button: a button without any meaning, used in association with js
<input type=”button” name=”值” value=”值”>
Reset button:
<input type=”reset” name=”值” value=”名称”/>
Hidden field: Pass data form that cannot be seen in the browser
<input type=”hidden” name=”值” value=”值” />
7.Multiple lines Text field:
<textarea rows=”行” cols=”列” value=”值” name=”值”></textarea>
Form mark: It is the display of the form field. You need to use the form mark to enclose the form content. Only at this time can It can be submitted because the form attribute contains: submission method (get and post) , Submission address (Specific submission page), Upload file settings (cannot upload if not set)
Submit address :action=”Specific address”
Submission method: getandpostThe data is passed directly in the website
To submit to the page path and name? Parameter name=Value&Parameter name=Value&Parameter name=Value
< a href=”d:/1016.php?>Hello
GetMethod: The data is submitted to another page in the browser address bar.
GetThe way to transfer data is through forms and hyperlinks
The form is the data filled in by the user.
Hyperlinks are data specified by the administrator to be transmitted
##Post
Method: Data hiding method Transmission, postOnly form transmission
Information method of data transmission: text, pictures, videos, etc.
Use of tags within the form:
The above is the detailed content of What is the inner tag of form in html? how to use ?. For more information, please follow other related articles on the PHP Chinese website!