tag

HTML

tag is used to define the rows in the table. The tag can consist one or more

The

tag must be a direct child of

HTML

head cells and data cells to define a single row of HTML table.
element or it can be nested child of , , and elements.

Syntax

Following are some specifications about the HTML tag

Display Inline
Start tag/End tag Start and End tag
Usage Table content

Example

Test it Now

Output:

HTML tr tag

Attribute:

Tag-specific attributes:

Attribute Value Description
align right
left
center
justify
char
It determines the alignment of the content in the table row. (Not Supported in HTML5)
bgcolor rgb(x,x,x)
#xxxxx
color_name
It defines the background color of the table row. (Not Supported in HTML5)
char character It specifies the alignment of content to the character. (Not Supported in HTML5)
charoff number It specifies the number of character the table row content will be aligned from the character, and which is specified by char attribute. (Not Supported in HTML5)
valign Top
Middle
Bottom
baseline
It specifies the vertical alignment of the table row content. (Not Supported in HTML5)

Global attribute:

The tag supports the Global attributes in HTML.

Event attribute:

The tag supports the Event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML track Tag




Contact US

Email:[email protected]

HTML tr Tag
10/30