    <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=gb2312" />
    <title>表格实例</title>
    <style type="text/css">
    p { font-size: 1em ; margin:0; color: #ff8888;font-weight:bolder;}
    .td_th{font-weight: bolder; text-align: center;font-size: 1.5em;color: #990099; font-style: italic;}
    </style>
    </head>
    <body>
    <p>用表头</p>
    <table width="94%" border="1">
      <tr><th>姓名</th><th>语文</th><th>数学</th><th>外语</th></tr>
      <tr>
        <td>学生1</td>
        <td>优</td>
        <td>及格</td>
        <td>中</td>
      </tr>
      <tr>
        <td>学生2</td>
        <td>良</td>
        <td>优</td>
        <td>及格</td>
      </tr>
      <tr>
        <td>学生3</td>
        <td>中</td>
        <td>良</td>
        <td>优</td>
      </tr>
      <tr>
        <td>学生4</td>
        <td>及格</td>
        <td>中</td>
        <td>良</td>
      </tr>
    </table>
    <p> </p>
    <p>不用表头(th)</p>
    <table width="94%" border="1">
      <tr><td>姓名</td><td>语文</td><td>数学</td><td>外语</td></tr>
      <tr>
        <td>学生1</td>
        <td>优</td>
        <td>及格</td>
        <td>中</td>
      </tr>
      <tr>
        <td>学生2</td>
        <td>良</td>
        <td>优</td>
        <td>及格</td>
      </tr>
      <tr>
        <td>学生3</td>
        <td>中</td>
        <td>良</td>
        <td>优</td>
      </tr>
      <tr>
        <td>学生4</td>
        <td>及格</td>
        <td>中</td>
        <td>良</td>
      </tr>
    </table>
    <p> </p>
    <p>不用表头(th)，设置首行 td 样式</p>
    <table width="94%" border="1">
      <tr>
      <td class="td_th">姓名</td>
      <td class="td_th">语文</td>
      <td class="td_th">数学</td>
      <td class="td_th">外语</td>
      </tr>
      <tr>
        <td>学生1</td>
        <td>优</td>
        <td>及格</td>
        <td>中</td>
      </tr>
      <tr>
        <td>学生2</td>
        <td>良</td>
        <td>优</td>
        <td>及格</td>
      </tr>
      <tr>
        <td>学生3</td>
        <td>中</td>
        <td>良</td>
        <td>优</td>
      </tr>
      <tr>
        <td>学生4</td>
        <td>及格</td>
        <td>中</td>
        <td>良</td>
      </tr>
    </table>
    </body>
    </html>