MANIPULASI LIST

Ada 3 tipe list. There are 3 types of lists.

Unordered Lists

Contoh penerapan unordered list:

• Anjing
• Kucing
• Buaya
• Monyet

Perintah ini menempatakan bullet (baik kotak atau bulat) di depan setiap item list.

Ini adalah kode yang ditulis pada HTML anda :

<UL>
<LI>Anjing</LI>
<LI>Kucing</LI>
<LI>Buaya</LI>
<LI>Monyet</LI>
</UL>

Tag <LI> sebagai pengganti List Items.

<UL> adalah TAG pembuka. Dianataranya adalah item-item yang akan di list. Kemudian di akhiri dengan Tag </UL>.


Ordered Lists

Item Ordered list diberi label berupa angka atau huruf.

Kode-nya adalah sebagai berikut:

<OL>
<LI>Anjing</LI>
<LI>Kucing</LI>
<LI>Buaya</LI>
<LI>Monyet</LI>
</OL>

Item Ordered list diberi label berupa angka atau huruf.

Kode-nya adalah sebagai berikut:

<OL>
<LI>Anjing</LI>
<LI>Kucing</LI>
<LI>Buaya</LI>
<LI>Monyet</LI>
</OL>


Definition Lists

Tipe ini relatif lebih kompleks namun jangan khawatir sebab tidak se-sulit kelihatannya.

Tipe ini relatif lebih kompleks namun jangan khawatir sebab tidak se-sulit kelihatannya.

Definisi list block adalah :

<DL></DL>

Inside the tag there are two parts:

<DT> Definition Term -and-
<DD> Definition Definition

contoh penggunaannya adalah :


HTML
Hyper Text Markup Language, the standard format for website documents.
Browser
The program in which the actual contents of the HTML document are displayed.
Link
A clickable text string or image that takes the viewer to another document, or location.


Kode-nya akan sebagai berikut:

<DL>
<DT> HTML
<DD> The program in which the actual contents of the HTML document are displayed.
<DT> Browser
<DD> The program in which the actual contents of the HTML document are displayed.
<DT> Link
<DD> A clickable text string or image that takes the viewer to another document, or location.
</DL>