Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML tr Tag

HTML tr Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <tr> tag

HTML <tr> tag is used to define the rows in the table. The <tr> tag can consist one or more <th> head cells and <td> data cells to define a single row of HTML table.

The <tr> tag must be a direct child of <table> element or it can be nested child of <thead>, <tbody>, and <tfoot> elements.



Following are some specifications about the HTML <tr> tag

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


 <!DOCTYPE html>
	<title>HTML tr tag</title>
	  	border-collapse: collapse;
	  	margin-left: 350px;
	  	padding: 25px;} 
	  	background-color: #005cb9;}
 <h2>Example of tr tag</h2>
 <table border="1">
 	<caption><b>Top Three performers of Winter Olympic Medals</b></caption>
 	<th>Total medals</th>
 	<td>United State</td>
Test it Now


HTML tr tag


Tag-specific attributes:

Attribute Value Description
align right
It determines the alignment of the content in the table row. (Not Supported in HTML5)
bgcolor rgb(x,x,x)
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
It specifies the vertical alignment of the table row content. (Not Supported in HTML5)

Global attribute:

The <tr> tag supports the Global attributes in HTML.

Event attribute:

The <tr> tag supports the Event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML track Tag

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf