Label definition ). The letter td refers to table data, that is, the content of the data cell. Data cells can contain text, images, lists, paragraphs, forms, horizontal lines, tables, and so on. 1. boder If the border attribute is not defined, the table does not display the border. Sometimes this is useful, but most of the time we want to display borders. Create a table without the border attribute and use the border attribute to display a table with a border: |
The browser displays the following results: 2. Table Header Table header usage |
Label. Most browsers display the header as text centered in bold: |
The browser displays the following results: 3. Empty cells in the table In some browsers, table cells with no content are not displayed very well. If a cell is empty (with no content), the browser may not be able to display the border of the cell. The border of the empty cell is not displayed. To avoid this problem, you can add a space placeholder to an empty cell to display the border. |
IE8.0 displays the following results: The result displayed in Chrome is: 4. Table with title and cross-row or cross-Column |
The browser displays the following results: In the table, you can also nest other labels in the grid labels, or perform various fancy designs, background colors, or background images. You can also arrange the data content in a table. You can add more table designs to the last five tags in the table label list.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger. |