Kumpulan Informasi Loker dan Kuliah di Indonesia

Tuesday, May 19, 2015

Cara Membuat Colspan dan Rowspan Dalam Halaman Web

2:35:00 PM Posted by Abdul Rohman 2 comments
Colspan dan Rowspan adalah tag yang digunakan untuk membuat sebuah tabel dengan mendefinisikan cell tabel dilebarkan lebih dari satu baris atau satu kolom. Tag yang digunakan yaitu:
  1. <th colspan="2"> ..... </th>
  2. <th rowspan="2"> .... </th>
Contoh:

<html>
<body bgcolor="yellow">
<h4>Colspan 2 kolom</h4>
<table border="1">
<tr>
<th colspan="2"> nomor satu </th>
<th> nomor lain </th>
</tr>
<tr>
<td> satu </td>
<td> dua </td>
<td> tiga </td>
</tr>
</table>
<h4>Spans 2 baris</h4>
<table border="1">
<tr>
<th rowspan="2"> nomor satu </th>
<th> nomor lain </th>
</tr>
<tr>
<td> dua </td>
</tr>
</table>
</body>
</html>

Hasilnya:



















2 comments:


  1. Many businesses are now exploring innovative ways to personalize their products and stand out in the market. One effective method is through custom dtf transfers, which allow for vibrant and durable designs on a variety of fabrics. By utilizing this technique, companies can create unique, eye-catching items that appeal to their target audience. Incorporating custom dtf transfers into their production process can significantly enhance brand visibility and customer satisfaction.

    ReplyDelete