Home > Web Front-end > HTML Tutorial > What is the inner tag of form in html? how to use ?

What is the inner tag of form in html? how to use ?

青灯夜游
Release: 2018-10-18 18:02:55
forward
3423 people have browsed it

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默认为空"/>
Copy after login

2. Password box:

<input type="password"  name="名称"   value="值" value="不写value默认为空"/>
Copy after login

3. Radio button:

<input type="radio"  name ="一组名称"  value="值" />
Copy after login

4. Multi-select box:

<input type="select"  name="一组名称"  value="值"/>
Copy after login

5. Drop-down menu:

<select name=”名称”>
<option value=”值”>描述</option>
<option value=”值”>描述</option>
<option value=”值”>描述</option>
<option value=”值”>描述</option>
</select>
Copy after login

6. Button:

Submit button:

<input type=”submit” value=”显示到按钮上的名称”/>
Copy after login

Image submission:

<input type=”imaget” src=”图片地址”  value=””/>
Copy after login

Ordinary button: a button without any meaning, used in association with js

<input type=”button” name=”值” value=”值”>
Copy after login

Reset button:

<input type=”reset” name=”值” value=”名称”/>
Copy after login

Hidden field: Pass data form that cannot be seen in the browser

<input type=”hidden” name=”值” value=”值” />
Copy after login

7.Multiple lines Text field:

<textarea rows=”行” cols=”列” value=”值” name=”值”></textarea>
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template