html-Forms and forms

Source: Internet
Author: User

1. Forms

<table><table/> Forms

Width: Wide

Border: Border

cellpadding: Margins for content and cell borders

cellspacing: Cell spacing

bgcolor: Background color

Background

<tr><tr/>: Line

<TD><TD/>: Column

Colspan= "n" merges the same row of cells

Rowspan= "n" merges the same column cell

Form

1, text input
text box <input type= "text" name= "" id= "" value= ""/>
Password box <input type= "password" name= "" id= "" value= ""/>
Text field <input type= "text" name= "" id= "" value= ""/>
Hidden fields <input type= "text" name= "" id= "" value= ""/>

2, Button

Submit button <input type= "Submit" disable= "Disable" name= "" id= "" value= ""/>
Reset button <input type= "Submit" disable= "Disable" name= "" id= "" value= ""/>
Normal button <input type= "Submit" disable= "Disable" name= "" id= "" value= ""/>
Picture button <input type= "text" name= "" id= "" value= ""/>

* Attached

Disable to invalidate a button; Enable to make available like a Boolean bool or true,flase, a button that is either available or invalid
<input type= "text" name= "" id= "" value= ""/>
<input type= "text" name= "" id= "" value= ""/>
<input type= "text" name= "" id= "" value= ""/>
<input type= "text" name= "" id= "" value= ""/>

Take the registration website as an example:

<title> form </title>

The ID is not repeatable; the difference between get and post: Get commits have a length limit, and the encoded content is visible in the address bar, the post length is unlimited, and the content is not visible after encoding.

<from/>

  

text box <input type= "text" name= "" id= "" value= ""/>

Password box <input type= "password" name= "" id= "" value= ""/>

Text field <textarea name= "" id= "" cols= "" (Number of characters) rows= "" (a few lines high) ><textarea/>

Hidden fields <input type= "hidden" name= "" id= "" value= ""/>

2. Button:

Submit button <input type= "Submit" Name= "id=" "disabled=" Disabled "value=" submit "/>
Reset button <input type= "reset" name= "" id= "" disabled= "Disabled" value= "reset/>
Normal button <input type= "button" name= "" id= "" disabled= "Disabled" value= ""/> Infrequently used
Picture button <input type= "image" Name= "" id= "" disabled= "Disabled" src= "Picture address"/>
Attach disabled to invalidate the button; Enable to make available (the system is customized to be available after disabled out, similar to the bool Boolean Type C #).
3, select input
radio button Group <intput type= "Redio" name= "" checked= "Checked" value= ""/>
check box group <input type= "checkbox" Name= "checked=" checked "value=" "/>
File upload <input type= "file" name= "id=" "/>
<lable for= "" ><lable/>
<select name= "" id= "" size= "" multiple= "multiple" > Size=1 when it is a menu; >1 is a list.

Drop-down list box

<select name= "" id= "" multiple= "multiple" >--size=1 is a menu; >1 is a list. Multiple is a multi-select.

html-Forms and 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.