Monday, November 7, 2011

Atribut Rowspan Tabel HTML

Atribut Rowspan Tabel HTML
Atribut rowspan adalah untuk menyatukan beberapa baris sel ke bawah.
Atribut ini dimiliki oleh tag <th> dan <td>

Contoh penggunaannya:

<html>
<head>
<title>Konsep Rowspan</title>
</head>
<body>
<table border="2">
<caption><strong><u>Konsep Penggunaan Atribut Rowspan</u></strong></caption>
      <tr bgcolor="#99FFFF">
         <th>Nama Produk</th>
         <th width="150" align="center">Merk</th>
      </tr>
     
      <tr>
         <td rowspan="3" width="150" align="center" bgcolor="#9999FF">Handphone</td>
         <td width="150" align="center" bgcolor="#CCFFFF">Nokia</td>
      </tr>
     
      <tr>
         <td width="150" align="center" bgcolor="#CCFFFF">Sony Ericson</td>
      </tr>
     
      <tr>
         <td width="150" align="center" bgcolor="#CCFFFF">Samsung</td>
      </tr>
</table>
</body>
</html>

Demikian penjelasan Atribut Rowspan Tabel HTML

0comments:

Post a Comment