HTML 表格实例:
First Name | Last Name | Points |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
John | Doe | 80 |
Adam | Johnson | 67 |
Tables are defined by the
tags). The letters td refer to table data, the contents of data cells. Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and more.
Table example
The browser displays as follows: :
HTML table and border attributesIf you do not define the border attribute, the table will not display borders. Sometimes this is useful, but most of the time, we want the border to show. Use the border attribute to display a table with borders:
HTML table headerThe header of the table is defined using the | tag.
Most browsers will display the header as bold, centered text:
The browser displays the following:
HTML table tag
|
---|