Change Font Size:

How to create HTML forms

HTML forms by <table> said. Forms can be divided into a lot of (the row), with <tr> said that each line can be divided into many cell (cell), with <td> said.

Tag is to create the three most commonly used form of Tag.

Example

Border attribute

By default, if we do not set forms the border, forms do not show boundaries.

Example: do not show the form border

To display forms the border, border can use this property.

Example: Showing the form border

Forms of the first table

By <th> forms to express the table first, the word is the first table shown in bold.

Example: the first is the form table

Empty cells

If the table cells <td> </ td> are not, then the cell borders will not be displayed, although the forms have been set up boundary value. To show that the cell borders, can be inserted into a space website.

Example

More examples

The forms are heading

This example shows how to use <caption> in a form with the title.

Or contains more out of the cell line

This example shows how to use colspan, rowspan settings or more out of the cell lines.

Gerry content unit

This example shows how cells <td> </ td> inside the content. The contents of the cells can be text, images, hyperlinks, Form, forms, etc..

Cell content with the cell the distance between the border

This example teach you how to use this cellpadding attribute cell content with the cell the distance between the border.

The distance between the cell

This example teach you how to use this cellspacing attribute the distance between the cell

Set the background color and form the background picture

This example shows how to use bgcolor attribute forms the background color, how to add background attributes form the background for the picture.

Set up cells of background colors and background images

This example shows how to use cell bgcolor attribute the background color, how to use the cells for background attributes add background images.

Cell content of the Alignment

This example teach you how to align attribute cell alignment manner.