HTML Tabel
Membuat tabel sederhana HTML
<table>
Struktur tabel sederhana HTML
<table>
<tbody>
</table>
<tr>
</tr>
<th>Kolom</th>
<th>Kolom</th>
<th>Kolom</th>
<th>Kolom</th>
<tr>
</tr>
<td>Kolom</td>
<td>Kolom</td>
<td>Kolom</td>
<td>Kolom</td>
<tr>
</tr>
</tbody>
<td>Kolom</td>
<td>Kolom</td>
<td>Kolom</td>
<td>Kolom</td>
Berdasarkan struktur elemen table diatas, tabel tersusun dari 5 elemen yaitu :
1. <table> : Elemen akar (pondasi) table
2. <tbody> : Body tabel
3. <tr> : Baris tabel
4. <th> :Kepala Kolom
5. <td> : Kolom Baris
Contoh tabel HTML
Hasil
| Kolom1 | Kolom2 | Kolom3 | Kolom4 |
|---|---|---|---|
| Baris1 | Baris1 | Baris1 | Baris1 |
| Baris2 | Baris2 | Baris2 | Baris2 |
Hasil
| Kolom1 | Kolom2 | Kolom3 | Kolom4 |
|---|---|---|---|
| Baris1 | Baris1 | Baris1 | Baris1 |
| Baris2 | Baris2 | Baris2 | Baris2 |
Komentar
Posting Komentar