As well as several elements in HTML there are specific codes for creating and formatting tables. The tables feature is very interesting and widely used in web pages and applications. The tables are made up of rows and columns, and at the intersection of these are the cells.

In HTML, you can enter all the cells that normally part of the body of a document, such as text, links, images, lists, and even other tables.

The marks that comprise the definition of a table are: <TABLE> … </ TABLE>. All other trademarks relating to the table – rows and cells – will only be considered if included among these brands.

The command <CAPTION> … </ CAPTION> – This is an optional element that defines the title of the table, and should be one of the brands that define, but separate the brands that define rows and columns. Without parameters, the title is displayed above the table and centered.

The command <TR> … </ TR> – is the abbreviation of the words Table Row or Table Line. This is the element used in the defining lines of the tables. The tables are set in rows, and these are made up of cells. The number of rows in a table is the number of existing <TR> </ TR>.

In turn, the command <TD> … </ TD> – is the abbreviation of the words Table Data or Data Table. These marks demarcating the cells that make up the lines, and therefore, must be inserted between marks lines.

The default alignment of a cell is left horizontally and vertically centered, and if the number of cells varies from one line to another, rows with fewer cells are completed right with blank cells.

Finally, the command <TH> … </ TH> – is the abbreviation of the words “Table Header”. It is the element that defines the header cells. The header cells have the same characteristics as those data cells defined by <TD>, except for the horizontal alignment pattern which is centralized, and the source of use in bold.

Check out following a practical example of HTML table creation using the elements mentioned above:

 
<table>
<caption> <b> Essay writer </b> </caption> <br>
<tr>
<td> <br>
</td>
<th> Column 1 </th>
<th> Column 2 </th>
</tr>
<tr>
<th> Line 1 </th>
<td> cell 1-1 </td>
<td> cell 1-2 </td>
</tr>
<tr>
<th> Line 2 </th>
<td> cell 2-1 </td>
<td> cell 2-2 </td>
</tr>
<tr>
<th> Line 3 </th>
<td> cell 3-1 </td>
<td> cell 3-2 </td>
</tr>
</table>

Visit our blog and check out more content!

By ,

February 11, 2016

a

You might also like…

5 reasons you can’t miss a Black Friday Scriptcase!

This November we bring you the biggest and most important discounts of the year! And do you know wh...

Taking a look at Scriptcase version 9.7

After the big Scriptcase 9.7 presentation event, we have a new version of Scriptcase for download, ...

October Newsletter

Follow the latest news for the month of October! Webinars, blog posts, videos, and more. WEB...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at sales@scriptcase.net. Learn more about our Privacy Police.