Home >Web Front-end >CSS Tutorial >Lesson02_03 Form Label_Basic Tutorial
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 | tr>
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 |
The code is as follows: |
The effect is as follows: |
The code is as follows: |
The effect is as follows: |
The code is as follows: |
The effect is as follows: |
size attribute: |
The effect is as follows: |
Under the maxlength attribute: |
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: |
<br><form> <input type="checkedbox" name=check> </form> |
The effect is as follows: |
checked attribute <br><form> <input type="checkedbox" checked name=check> </form>
|
The effect is as follows: |
<br><form> <input type="radio" name=radio1 value=1 checked>男<br><input type="radio" name=radio1 value2>女 </form> |
The effect is as follows: |
The code is as follows: <from>< input type="password"> </frome>
|
The effect is as follows: |
The code is as follows: |
The effect is as follows: |