abbr.Thailand Thailand
html th tag syntax
Function:Define the header cell in the table.
Description: There are two types of cells in HTML forms: header cells - containing header information (created by the th element) standard cells - containing data (created by the td element) create). Text inside a th element will typically be rendered as centered, bold text, while text inside a td element will usually be left-aligned normal text.
Note: If you need to span content across multiple rows or columns, use the colspan and rowspan attributes.
html th tag example
<html> <body> <table border="1"> <tr> <th>Company</th> <th>Address</th> </tr> <tr> <td>Apple, Inc.</td> <td>1 Infinite Loop Cupertino, CA 95014</td> </tr> </table> </body> </html>
Run Instance»
Click the "Run Instance" button to view the online instance
<html> <body> <table border="1"> <tr> <th>name</th> <th>description</th> </tr> <tr> <td>西门大官人</td> <td>PHP中文网高级讲师,PHP高级工程师</td> </tr> </table> </body> </html>
Run instance»
Click the "Run instance" button to view the online instance