HTML Tag - Computer Hope
Trang chủ » Html Th Column
» HTML
Tag - Computer Hope
Có thể bạn quan tâm
HTML <th> tag Updated: 09/12/2023 by Computer Hope The HTML (HyperText Markup Language) <th> tag is short for table head and used to designate a cell as a column header in a table. It is useful for storing information about a set of rows or columns. The following sections contain information about the <th> tag, including an example of it in use, and related attributes and browser compatibility.
Tip More advanced tables may include the <caption>, <col>, <colgroup>, <tbody>, <tfoot>, or <thead> elements.
- Example of <th> code
- Example result
- Attributes
- Deprecated attributes
- Compatibility
- Related information
Example of <th> code
<table class="mtable2 tab"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr class="tcw"> <td>March</td> <td>$200</td> </tr> <tr class="tcw"> <td>April</td> <td>$300</td> </tr> <tr class="tcw"> <td>May</td> <td>$250</td> </tr></table> Example result
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.
Attributes
All HTML tags support standard attributes that define the settings of an HTML element. In addition to the standard settings, the <th> tag has the following unique attributes.
Attribute Description abbr Designates an abbreviated version of the content within a header cell. colspan Designates how man columns a header cell should span. headers Designates one or more header cells that a certain cell has relation. rowspan Designates how man rows a header cell should span. scope Designates whether a header cell is a header for a column, row, or group of columns or rows. sorted Designates the sorting direction of a column.
Deprecated attributes
In addition to the above attributes, the <th> tag had the following deprecated attributes.
Attribute Description align Designates the alignment of content inside an element. axis Used to categorize header cells. bgcolor Designates the background color of a header cell. char Aligns the content in a header cell to a specific character. charoff Sets the number of characters to offset the content from the character designated by the char attribute. height Designates the height of a header cell. nowrap Designates that the content inside a header cell should not wrap. valign Alights the content in a header cell vertically. width Designates the width of a header cell.
Compatibility
Edge Internet Explorer Firefox Safari Opera Chrome All versions All versions All versions All version All versions All versions
Related information
- HTML and web design help and support.
Browser, Cell, Class, Column, Compatibility, Computer abbreviations, Container tag, Format, Row, <table>, Table, <td>, <tr>, Web design terms
Từ khóa » Html Th Column
-
HTML Th Tag - W3Schools
-
HTML Th Colspan Attribute - W3Schools
-
For A Column Instead Of Row? - Stack Overflow
-
: The Table Header Element - HTML - MDN Web Docs - Mozilla
-
HTML: Tag - TechOnTheNet
-
HTML | Colspan Attribute - GeeksforGeeks
-
HTML | Width Attribute - GeeksforGeeks
-
HTML Tag »
-
Elements/th - HTML Wiki
-
Tables With Two Headers | Web Accessibility Initiative (WAI) | W3C
-
HTML Th Tag - Learn HTML | W3Docs
-
Advanced Table Settings: Column Width, Alignment And Merging Cells
-
HTML Tables – Table Tutorial With Example Code - FreeCodeCamp
-
HTML - Tables - Tutorialspoint
Liên Hệ
TRUYỀN HÌNH CÁP SÔNG THU ĐÀ NẴNG
Địa Chỉ: 58 Hàm Nghi - Đà Nẵng
Phone: 0904961917
Facebook: https://fb.com/truyenhinhcapsongthu/
Twitter: @ Capsongthu
Copyright © 2022 | Thiết Kế Truyền Hình Cáp Sông Thu
Trang chủ » Html Th Column » HTML
Có thể bạn quan tâm
The HTML (HyperText Markup Language) <th> tag is short for table head and used to designate a cell as a column header in a table. It is useful for storing information about a set of rows or columns. The following sections contain information about the <th> tag, including an example of it in use, and related attributes and browser compatibility.
TipMore advanced tables may include the <caption>, <col>, <colgroup>, <tbody>, <tfoot>, or <thead> elements.
- Example of <th> code
- Example result
- Attributes
- Deprecated attributes
- Compatibility
- Related information
Example of <th> code
<table class="mtable2 tab"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr class="tcw"> <td>March</td> <td>$200</td> </tr> <tr class="tcw"> <td>April</td> <td>$300</td> </tr> <tr class="tcw"> <td>May</td> <td>$250</td> </tr></table>Example result
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.
Attributes
All HTML tags support standard attributes that define the settings of an HTML element. In addition to the standard settings, the <th> tag has the following unique attributes.
Attribute | Description |
---|---|
abbr | Designates an abbreviated version of the content within a header cell. |
colspan | Designates how man columns a header cell should span. |
headers | Designates one or more header cells that a certain cell has relation. |
rowspan | Designates how man rows a header cell should span. |
scope | Designates whether a header cell is a header for a column, row, or group of columns or rows. |
sorted | Designates the sorting direction of a column. |
Deprecated attributes
In addition to the above attributes, the <th> tag had the following deprecated attributes.
Attribute | Description |
---|---|
align | Designates the alignment of content inside an element. |
axis | Used to categorize header cells. |
bgcolor | Designates the background color of a header cell. |
char | Aligns the content in a header cell to a specific character. |
charoff | Sets the number of characters to offset the content from the character designated by the char attribute. |
height | Designates the height of a header cell. |
nowrap | Designates that the content inside a header cell should not wrap. |
valign | Alights the content in a header cell vertically. |
width | Designates the width of a header cell. |
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | All versions | All versions | All version | All versions | All versions |
Related information
- HTML and web design help and support.
Browser, Cell, Class, Column, Compatibility, Computer abbreviations, Container tag, Format, Row, <table>, Table, <td>, <tr>, Web design terms
Từ khóa » Html Th Column
-
HTML Th Tag - W3Schools
-
HTML Th Colspan Attribute - W3Schools
-
For A Column Instead Of Row? - Stack Overflow : The Table Header Element - HTML - MDN Web Docs - Mozilla HTML:
Tag - TechOnTheNet HTML |
Colspan Attribute - GeeksforGeeks HTML |
Width Attribute - GeeksforGeeks HTML Tag » Elements/th - HTML Wiki
Tables With Two Headers | Web Accessibility Initiative (WAI) | W3C
HTML Th Tag - Learn HTML | W3Docs
Advanced Table Settings: Column Width, Alignment And Merging Cells
HTML Tables – Table Tutorial With Example Code - FreeCodeCamp
HTML - Tables - Tutorialspoint
Liên Hệ
TRUYỀN HÌNH CÁP SÔNG THU ĐÀ NẴNG
Địa Chỉ: 58 Hàm Nghi - Đà Nẵng
Phone: 0904961917
Facebook: https://fb.com/truyenhinhcapsongthu/
Twitter: @ Capsongthu
Copyright © 2022 | Thiết Kế Truyền Hình Cáp Sông Thu