How can we add a table row in HTML?

WBOY
Release: 2023-09-07 15:09:02
forward
1198 people have browsed it

How can we add a table row in HTML?

Add table rows using the

tag. The HTMLtag is used to specify a table row in the table. The

HTML

tag also supports the following additional attributes − bgcolor rgb(x,x,x) Char #Character Charoff pixels or % ##has Deprecated Valign Deprecated Example
Attribute

Value

Description

Align

right

left

center

justify

char

##Deprecated− Visual alignment .

#hexcode

colorname

Deprecated− Specifies the background color of table cells.

Deprecated− Specifies the characters to align text. Used when align = "char".

− 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 − Vertical alignment

You can try running the following code to learn how to add a row in an HTML table−

   HTML tr Tag 
  
Cricketers Ranking
Virat Kohli 1
AB de Villiers 2
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!