Jumat, 8 Mei, 2009...23:12

Belajar HTML Membuat Daftar/ List

Lompat ke Komentar

Untuk membuat tulisan terlihat lebih rapih, terutama jika tulisan tersebut terdapat daftar/list, saya menggunakan TAG HTML saat menulis. Berikut ini TAG HTML yang dapat digunakan untuk membuat Daftar/List, saya ambil dari HTMLDOG.COM.

ul
unordered list. Defines a list that has no logical sequence. Used in conjunction with li to define the list items.
ol
ordered list. Used to define a list that has logical sequence. Used in conjunction with li to define the list items.
li
list item. Used in conjunction with ul or ol to make an unordered list or ordered list respectively.

dl
definition list. Used in conjunction with dt to define definition terms and dd to definition descriptions.
dt
definition term. Used in conjunction with dl to define a definition list and dd to define the description linked with the term.
dd
definition description. Used in conjunction with dl to define a definition list and dt to define the term linked with the description.

Cara menggunakan TAG HTML tersebut, saat menulis posting, saya menulisnya seperti di bawah ini.

<ul>
<li>
Yang Pertama</li>
<li>
Yang Kedua</li>
<li>
Yang Ketiga</li>
</ul>



<ol>
<li>
Nomor Satu</li>
<li>
Nomor Dua</li>
<li>
Nomor Tiga</li>
</ol>



<dl>
<dt>
GELAS</dt>
<dd>
Alat untuk minum</dd>
</dl>


<dl>
<dt>
PIRING</dt>
<dd>
Alat untuk makan</dd>
</dl>

Saat tulisan/posting dipublikasikan, akan terlihat seperti di bawah ini.

  • Yang Pertama
  • Yang Kedua
  • Yang Ketiga
  1. Nomor Satu
  2. Nomor Dua
  3. Nomor Tiga
GELAS
Alat untuk minum
PIRING
Alat untuk makan

& Komentar


Tinggalkan Balasan