Forms and Forms

Source: Internet
Author: User

Form:
Basic structure:
<table>
<tr>
<td> everything </td>
</tr>
</table>

"You can add tables individually in each cell in the table"
Properties of Table:
Width: Wide
Border: Border
Align: Alignment
bgcolor: Background color
Background: Background image
CellPadding: The distance between the content and the cell border, the internal distance
CellSpacing: Distance between cells, external distance

Properties of TR
Align: line content horizontal alignment
valign: line Content Vertical alignment
Height: Row Height
bgcolor: Background color
Background: Background image

Properties of TD
Align: cell content horizontal Alignment
valign: Vertical alignment of cell contents
Height: Cell Height
Width: Cell width
bgcolor: Background color
Background: Background image

Three points of focus
One, several rows (several rows, each row has several cells)

Second, width and height
Width= "" Higth= ""
Three, border
Border= "" in pixels when the number is zero, the table has no border
--------------------------------------------------------------------
Forms: Form elements are generally written in the middle of a <form> form tag, and a page can have only one form form
First, text input
text box-<input type= "text" >
Password box-<input type = "Password" >
Text Fields-<textarea></textarea>
Hidden Fields-<input type= "hidden" >

Second, button
Submit button-<input type= "Submit" >
Reset button-<input type= "Reset" >
Normal button-<input type= "button" >
Picture button-<input type= "image" >

disabled = "disabled/enable"-make button unavailable/available
Id= ""
Value-button display text


Third, select input
Radio button-<input type= "Radio" >
Check button-<input type = "checkbox" >
Name= "What to group on"-Grouping
Checked = "Checked"-Selected by default (only one in group of radio buttons, more than one in group of multi-select buttons)
<label for= "point to ID" >-position the focus to the ID element for the for point

File upload-<input type = "File" >
Drop-down list box:
<select multiple= "multiple" >-whether to display multiple items
<option> 1</option>
<option> 2</option>
......
</select>

Option has the selected property, set selected = "Selected", is the default check


Forms and Forms

Related Article

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.