Web Authoring-form elements

Source: Internet
Author: User

The form form is double marked with the start and end of the,<form></form> form property has name its value is the form's name method it is the form's submission form action its value is the service side responsible for processing

For example: When the value of method is get, the encoded content of the commit is displayed but has a length limit (relatively unsafe)

<name= "instance"  method= "Get"  action= "aa.html" ><  type= "Submit"  name= "Shili"/></form  >

The URLs displayed in the browser are submitted later

When the value of method is post, the encoded content submitted does not show no length limit

<name= "instance"  method= "POST"  action= "aa.html" ><  type= "Submit"  name= "Shili"/></form  >

URLs displayed in the browser after submission

1, the text input must have name can not have value in the Web page to display the URL Name=value

A. Text box

  <name= "instance"  method= "POST"  action= "aa.html" >          <  type= "text"  name= "Shili"value= "blog"   >      </form>

Browser display

B. Password box

<name= "instance"  method= "POST"  action= "aa.html" >          <  type= "password"  name= "Mima"  value= "123" / >      </ form >

Browser display

C. Hidden fields (not shown in the browser, but will continue to commit when submitted)

      <name= "instance"  method= "POST"  action= "aa.html" >          <  type= "hidden"  name= "Yincang"value= "hidden" > </ form >       

D. The text field (also with value, just different from the value of input, whose value is written in the middle of two double markers

      <name= "instance"  method= "POST"  action= "aa.html" >         <  name= "Wenbenyu"> This is the text field </textarea  >      </form>

Front-end display can be very small, such as writing comments, etc.

Text Comfortable properties In addition to the above, there is a placeholder it is to prompt you this text box to enter what content of

For example

      <name= "instance"  method= "POST"  action= "aa.html" >          <  type= "password"  name= "Mima"  placeholder = "Password" />      </ form >

Previous segment display

2. Button

A. Submit button, click to go to the URL in the value of action in form

      <name= "instance"  method= "Get"  action= "aa.html" >          <  type= "Submit"  name= "Tijiao"  value= " Submit "/>      </form>

The Submit button is used to perform background processing of input content submitted by the background.

B. Recharge button

      <name= "instance"  method= "Get"  action= "aa.html" >          <  type= "reset"  name= "Chongzhi"  value= "Reset"/>      </form>

The reset button is used to reset the input content

C. Normal button

      <name= "instance"  method= "Get"  action= "aa.html" >          <  type= "button"  name= "normal"  value= "Baidu a bit "/>      </form>

such as Baidu, search orphan, Google and other searches with

D. Picture button

 <  form  name  = "instance"   method  = "Get"   action  = "aa.html"           >  <  input  type  = "image"   src  = "New Folder (2)/shouye/images/lx1.png"   name  = "T"   value  = "Picture"       />  </ form  

Use a picture to make a button

Web Authoring-form elements

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.