Creating tables is a very convenient feature on a personal computer. Let's talk today about how to learn how to create a table in HTML5, and also learn how its parameters to specify through styles.
Task and its decision
To begin with, it is necessary to understand the entire system of creating table parameters and in principle its structure. In essence, as you know everything, the table consists of two parts. If they can be called like that - lines and columns, which can also be located separate cells. It can also be located various inscriptions and images, because tables may be different and they are created for different purposes.
If you need to add a table from rows and columns to some site, you will have to use the \u003ctable\u003e tag. It is necessary to understand that this "detail" is essentially yours. We spell up a certain container for the elements that, in turn, are the determinant of tabular content.
It should also be noted that the lines, as well as columns, are specified, too, tagged - \u003ctr\u003e and \u003ctd\u003e. You should not forget that in any case, no matter how much the table should be at least the only cell in it. If, for some reason, you did not have a standard tag, then you can use others, for example - \u003cTH\u003e. If you chose this option, then be sure that it will be displayed in bold and besides, there will also be automatic alignment along the cell itself. This happens in automatic mode, and it is the browser that displays these parameters. This is the only difference that you can notice in this case.
Cells in the table that will be created on the site will look like this:
- in the horizontal line with the first cell to settle down the second
- vertically under the first cell will be the third
- next to the third horizontal is the fourth cell, etc.
If you decide to include in the table such an element as Border (it will take \u003ctable\u003e to create it, it will need to be used exclusively with an empty value and in no way differently (the value is equal to one). Even if desired, all other values \u200b\u200bsimply will not pass the validation process.
In order for the user to manage the field, which is located inside the cell, it will be necessary to take advantage of such a property as Padding, which refers to stylistic. Most often this property goes paired with TD selector.
If you need to change the distance between the cells in the table, it will be necessary to use the property called Border-Spacing. It is him and necessary to add to the table.
In order to reduce or increase the distance of honey cells, you can also use a frame that is around each cell.