XHTML Guide - Forms
XHTML is in the form of a label in an awkward position, this section can only understand
The handbook after more closely linked, we recommend that you read from the first quarter onwards.
On the table
CSS in pop before, are widely used in positioning table. In XHTML, the table is not recommended for positioning, W3C CSS hope can replace <table> positioning in the position. But as a matter of fact use CSS layout often need a lot of hand-written code (commonly used web page design software, such as Dreamweaver not perfect display support div), <table> still many Web sites Home layout language, for example, Google's pages More products to the use of the positioning table. But I recommend you start to use CSS positioning website, because it is Web development direction. Of course, in the first table with the CSS may replace you encounter a lot of trouble.
Form label <table>
In XHTML, the label is to create forms <table>, writing code, we have to use labels <tr> forms will be divided into line by line, and then <td> label each line is divided into a grid of a grid. Create table completely handwritten code is very difficult and inefficient, and in the production of web authoring software like Word on the form as simple as just need to select ranks of such attributes can be simple. However, we may have to make automatic forms do not meet the requirement and need in the code patterns may be adjusted, so we should probably understand XHTML form the specific wording of labels.
Forms of the border (border) Properties
<table> Labels can border attributes. If we do not set the value of the attribute border, in default, the browser will not display the forms borders.
Form practice
We have to build a four lines of the two labels, the code below:
<table Border="1" /> <tr> <td> a lattice </ td> <td> a lattice </ td> </ tr> <tr> <td> a lattice </ td> <td> a lattice </ td> </ tr> <tr> <td> a lattice </ td> <td> a lattice </ td> </ tr> <tr> <td> a lattice </ td> <td> a lattice </ td> </ tr> </ table>
Showing results are as follows: Note that the above code, a total of four Comment on "tr>, corresponding to the following four firms. And not a <tr> (trip) has two <td> cell. So on the fourth line has become a two forms.
| A lattice | A lattice |
| A lattice | A lattice |
| A lattice | A lattice |
| A lattice | A lattice |
This form of data used to list information such as adequate, but the form used for positioning usually complicated. Stress once again that we do not recommend to use positioning table, so here simply introduced <table>.
If you want to use a lot of data shown in the table may also need to join the caption (title), thead, tbody etc., introduced here do.
Enter the next section: XHTML - Anti-frame structure
