Thứ Sáu, 27 tháng 3, 2015

các thẻ căn bản trong sử dụng bảng và tạo bảng


<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1" width="950">
<tr>
<th colspan="16">cột 1</th>
<th colspan="16">cột 2</th>
<th colspan="16">cột 3</th>
<th colspan="2">cột 4</th>
<th colspan="2">cột 5</th>
</tr>
<tr>
<th colspan="8">ô 1</th>
<th colspan="8">ô 2</th>
<th colspan="8">ô 3</th>
<th colspan="8">ô 4</th>
                <th colspan="8">ô 5</th>
<th colspan="8">ô 6</th>

</tr>
<tr>
<th colspan="4">ô 3</th>
<th colspan="4">ô 4</th>
<th colspan="4">ô 5</th>
<th colspan="4">ô 6</th>
<th colspan="4">ô 7</th>
<th colspan="4">ô 8</th>
<th colspan="4">ô 9</th>
<th colspan="4">ô 10</th>
                    <th colspan="4">ô 11</th>
<th colspan="4">ô 12</th>
<th colspan="4">ô 13</th>
<th colspan="4">ô 14</th>
</tr>
<th colspan="2">
<select name>
<option value="ô 7">ô 7</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select></th>
<th colspan="2">
<select name>
<option value="ô 8">ô 8</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
                            <option value="11">11</option>
</select></th>
<th colspan="2">
                    <select name>
                        <option value="ô 9">ô 9</option>
                        <option value="12">12</option>
                            <option value="13">13</option>
                            <option value="14">14</option>
                            <option value="15">15</option>
                            <option value="16">16</option>
                            <option value="17">17</option>
                            <option value="18">18</option>
                        </select></th>
                    </th>
<th colspan="2">ô 10</th>
<th colspan="2">ô 11</th>
<th colspan="2">ô 12</th>
<th colspan="2">ô 13</th>
<th colspan="2">ô 14</th>
                    <th colspan="2">ô 15</th>
<th colspan="2">ô 16</th>
<th colspan="2">ô 17</th>
<th colspan="2">ô 18</th>
                    <th colspan="2">ô 19</th>
<th colspan="2">ô 20</th>
<th colspan="2">ô 21</th>
<th colspan="2">ô 22</th>
</tr>
</table>

   
</body>
</html>

Không có nhận xét nào: