Home >Web Front-end >HTML Tutorial >How to create table title in HTML?
Create a title using the
The following are the attributes:
Attributes | Value | Description |
---|---|---|
##abbreviated_text |
DEPRECATED | - Specifies an abbreviated version of the content in the header cell. |
right |
left center justify char | DEPRECATED- Alignment of content in header cells. |
Name |
DEPRECATED | - Specifies the category of this th. |
##rgb(x,x,x) | #hexcode colorname
DEPRECATED | - Specifies the background color of the header cell. char |
Character | is deprecated | - Specifies the characters to justify text. Used when align = "char". charoff |
pixels or % | has been Deprecated | - Specifies the alignment offset (expressed as a pixel or percentage value) relative to the first character specified by the char attribute. Used when align = "char". colspan |
Number | Specify the span of the header cell Number of columns. | headers |
Id | Specify one or more with The header cell associated with the cell. | height |
pixels | DEPRECATED | - Specifies the height of the header cell. nowrap |
Nowrap | Deprecated | - Prevent text from wrapping. rowspan |
rowspan | Specifies the span of the header cell Rows. | scope |
col | colgrouprowrowgroup This property is used for header cells, specifying the cells that will use the information for this header. | valign |
top | middlebottombaseline
#DEPRECATED | - Vertical alignment. width |
pixels or % | ## has been Deprecated - Specifies the width of the header cell. |
Example |
<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <h3>Result</h3> <table> <th>Marks</th> <th>Student</th> <tr> <td>600</td> <td>Amit</td> </tr> <tr> <td>400</td> <td>Anil</td> </tr> </table> </body> </html>
The above is the detailed content of How to create table title in HTML?. For more information, please follow other related articles on the PHP Chinese website!