Align Table Headers style by default, table headers are bold ad centered:
Left-align Headers
To left-align the table headers, use the CSS text-align property.
Firstname | Lastname | Age |
---|---|---|
Jen | Smith | 40 |
Eve | Jack | 80 |
HTML Table Headers
HTML tables can have headers for each column or row, or for many columns/rows.
its defined with th elements, each th element represents a table cell.
Table Headers
Use the TH element to define table headers.
Firstname | Lastname | Age |
---|---|---|
Jena | Smith | 40 |
Eve | Jackson | 90 |
Vertical Table Headers :
To use the first column as table headers, define the first cell in each row as a th element:
Vertical Table Headers
The first column becomes table headers if you set the first table cell in each table row to a TH element:
Firstname | Jen | Jack |
---|---|---|
Lastname | Jhon | Jackson |
Age | 40 | 80 |
Comments :
Post a Comment