Tutorial HTML5 - Elemen <dl>, <dt>, <dd>

By Admin | May 24, 2018

Tutorial HTML5 - Elemen <dl>, <dt>, <dd> image

Elemen dl, dt, dd digunakan untuk list yang bersifat menjelaskan.

Satu istilah dan penjelasan
<dl>
 <dt>Firefox</dt>
 <dd>
   A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
 </dd>

 <!-- Other terms and descriptions -->
</dl>

Hasil output:

Firefox
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
Banyak istilah dan satu penjelasan
<dl>
 <dt>Firefox</dt>
 <dt>Mozilla Firefox</dt>
 <dt>Fx</dt>
 <dd>
   A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
 </dd>

 <!-- Other terms and descriptions -->
</dl>

Hasil output:

Firefox
Mozilla Firefox
Fx
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
Satu istilah dan banyak penjelasan
<dl>
 <dt>Firefox</dt>
 <dd>
   A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
 </dd>
 <dd>
   The Red Panda also known as the Lesser Panda, Wah, Bear Cat or Firefox, is a mostly herbivorous mammal, slightly larger than a domestic cat (60 cm long).
 </dd>

 <!-- Other terms and descriptions -->
</dl>

Hasil output:

Firefox
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
The Red Panda also known as the Lesser Panda, Wah, Bear Cat or Firefox, is a mostly herbivorous mammal, slightly larger than a domestic cat (60 cm long).

Jika anda suka dengan artikel tersebut, silakan berikan dukungan

Donasi