Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizThe HTML <tr> tag is short for table row and used to designate a row of cells in a table and can contain <th> and <td> tags. The following sections contain information about the <tr> tag, including an example of it in use, and related attributes and browser compatibility.
TipMore advanced tables may also include the <caption>, <col>, <colgroup>, <tbody>, <tfoot>, or <thead> elements.
Example of <tr> code<table class="mtable2 tab">Month | Savings |
---|---|
March | $200 |
April | $300 |
May | $250 |
We have added a few of our own classes to the table using CSS; this action allows US to improve its appearance.
Deprecated attributesWithin an HTML tag, an attribute DICTATES certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. Every attribute that was unique to the <tr> tag is deprecated. While these attributes may work with the some versions of HTML, they will eventually be PHASED out. You should use CSS to adjust the dimensions and appearance of this element.
Attribute | Description |
---|---|
align | Designates the alignment of content inside an element. |
bgcolor | Designates the BACKGROUND color of a table row. |
char | Aligns the content in a table row to a specific character. |
charoff | Sets the number of characters to offset the content from the character designated by the char attribute. |
valign | Alights the content in a table row vertically. |
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | All versions | All versions | All version | All versions | All versions |
Turn Your Knowledge into Earnings.
Ever curious about what any word really means? Dictionary has got them all listed out for you to explore. Simply,Choose a subject/topic and get started on a self-paced learning journey in a world of word meanings and translations.
Write Your Comments or Explanations to Help Others