Fresh features... |
HTML Tables
Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc. Table Example<tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> How the HTML code above looks in a browser:
HTML Tables and the Border AttributeIf you do not specify a border attribute, the table will be displayed without borders. Sometimes this can be useful, but most of the time, we want the borders to show. To display a table with borders, specify the border attribute:
HTML Table HeadersHeader information in a table are defined with the <th> tag. All major browsers will display the text in the <th> element as bold and centered.
How the HTML code above looks in your browser:
|
Follow the Owner for latest tweets about the site and updates |