Common code elements for HTML forms

Source: Internet
Author: User

Form:

The media that submits data to the server through the browser.
<form action= "" method= "Get/post" ></form>

Get commits have a length limit

Post submission no length limit

Generally used post

Form elements: 12

1. Text class
1). <input type= "text" value= "" >-text Box

Enter the content in the text box ....


2). Password-Password box

3).<textarea></textarea>-Text field

You can enter multiple lines of content.

4). Hidden-Hidden fields

Inside can also input content, but is not to show people, is used for computer program to see.

2. Button class
Button - Normal Press Twist

Submit-Commit button

If the submit button inside the "submit" two words can be used value= "input changed content", which can be used.

Submit the contents of the form to the server

Reset-Reset button

The default is to reset the two words, which is the role of emptying the form inside the contents of the form.

Image-Picture button = Submit button

The same as the submit button above.

3. Select Class
Radio-radio button

checkbox-check button, multi-select button

<select>-drop-down list

<option></option>

This is the way it works:



</select>

File-Document Selection

Run like this:

Common code elements for HTML forms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.