Home > Web Front-end > CSS Tutorial > Lesson02_03 Form Label_Basic Tutorial

Lesson02_03 Form Label_Basic Tutorial

WBOY
Release: 2016-05-16 12:08:49
Original
1593 people have browsed it

is used to create a form, that is, to define the start and end positions of the form tr>
Attribute name Action
action Set the server-side URL address for processing the form. The default is the form page
method Used to set the method used to submit the information in the form to the server-side handler
The value is: get or post. The default value is: get. Post is used when the transmission is larger than 1K
target Used to specify the target window or target frame for displaying results returned by the server
title Used to set the text displayed when the website visitor's mouse stays at any location at the commendation meeting for a few seconds
enctype Indicates which encoding method the browser uses to transmit the form data to the www server. The values ​​are:
application/x-www-form-urlencoded and multipart/form-date. The default is the former

Submit button:

Used to submit the content of the form
When a name value is set, its name and value must also be Submit to server
The code is as follows:
The effect is as follows:

Reset button:

is used to set the content of the form to the default value
The code is as follows:
The effect is as follows:

Single line text input area:

It has a size attribute to specify the size of the input area in characters
The code is as follows:
The effect is as follows:
size attribute:
The effect is as follows:
Under the maxlength attribute:
< /form>
Only 9 characters can be entered
The effect is as follows:
value attribute:
The effect is as follows:
readonly attribute: <br><form> <input type="text" readonly value="Loncer"> </form>
Cannot be changed manually, you can use a script to change it
The effect is as follows:
disable attribute:<br><form> <input type="text" disabled value="Loncer"> </form>
When this element does not exist, it will not be passed to the server
The effect is as follows:

Checkbox button:

<br><form> <input type="checkedbox" name=check> </form> The effect is as follows:
Yes
checked attribute <br><form> <input type="checkedbox" checked name=check> </form> The effect is as follows:
Yes

Radio button Button:

Only one can be selected
<br><form> <input type="radio" name=radio1 value=1 checked>男<br><input type="radio" name=radio1 value2>女 </form> The effect is as follows:
MaleFemale

Hidden field:

is not displayed and is used to submit hidden information

Password input area:

Make the input content as *, which is invisible
The code is as follows: <from>< input type="password"> </frome> The effect is as follows:

Button:

is connected to the script
The code is as follows:
< input type="button" value="Submit">
The effect is as follows:

Related labels:
source:php.cn
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