Home >Web Front-end >HTML Tutorial >How can we add a table row in HTML?
Add table rows using the
HTML
Attribute | Value | Description |
---|---|---|
Align | right left center justify char |
##Deprecated − Visual alignment . |
rgb(x,x,x) | #hexcode colorname |
Deprecated − Specifies the background color of table cells. |
#Character | Deprecated − Specifies the characters to align text. Used when align = "char". | |
pixels or % | ##has Deprecated | − Specifies the alignment offset (expressed as a pixel or percentage value) aligned with the first character specified by the char attribute. Used when align = "char". |
topmiddlebottombaseline | Deprecated | − Vertical alignment |
<!DOCTYPE html> <html> <head> <title>HTML tr Tag</title> </head> <body> <table border = "1"> <tr> <th>Cricketers</th> <th>Ranking</th> </tr> <tr> <td>Virat Kohli</td> <td>1</td> </tr> <tr> <td>AB de Villiers</td> <td>2</td> </tr> </table> </body> </html>
The above is the detailed content of How can we add a table row in HTML?. For more information, please follow other related articles on the PHP Chinese website!