Home >Web Front-end >HTML Tutorial >Why is the font in the table black_html/css_WEB-ITnose
<html> <body> <table border="1"> <tr> <th>c1</th> <th>c2</th> </tr> <tr align="left"> <th>c1content</th> <th>c2content</th> </tr> </table> </body></html>
b4d429308760b6c2d20d6300079ed38ec2content01c3ce868d2b3d9bce8da5c1b7e41e5bChange to td
b6c5a531a458a2e790c1fd6421739d1cc2content
The font in th is bold by default
<html><head><title>表格</title> </head><body> <table border="1"> <!-- 表格标签<table>,设定表格边框为1 --> <tr> <!-- tr为行标签 --> <th>c1</th> <!-- td为表格头标签,默认为黑体 --> <th>c2</th> </tr> <tr align="left"> <!-- tr为行标签,该行的内容为左对齐 --> <th>c1content</th> <!-- 这里你可以设成<td>标签,你也可以使用CSS改变内容的格式 --> <th>c2content</th> </tr></table></body></html>
b4d429308760b6c2d20d6300079ed38ed66cab335e4fda3147ba1952e00b0437c1ec1fca601d556412b20078a19c015a8301c3ce868d2b3d9bce8da5c1b7e41e5b
Sir, you can learn from this website
http://w3school.com.cn/html/html_tables.asp
b4d429308760b6c2d20d6300079ed38e c2content01c3ce868d2b3d9bce8da5c1b7e41e5b changed to td
b6c5a531a458a2e790c1fd6421739d1cc2contentb90dd5946f0946207856a8a37f441edf