java web程序 html标签中<th>和<td>的用法区别:
<th>是用于表头式的
<td>是列
代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="zh-CN" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> </head> <body> <table border='3'> <tr> <th>姓名:</th> <th>年龄:</th> </tr> <tr> <td>张三</td> <td>20</td> </tr> </table> </body> </html>