Tag <bagian> HTML
Contoh
Dua bagian dalam dokumen:
<section>
<h2>WWF History</h2>
<p>The World Wide Fund for Nature (WWF)
is an international organization working on issues regarding the
conservation, research and restoration of the environment, formerly named
the World Wildlife Fund. WWF was founded in 1961.</p>
</section>
<section>
<h2>WWF's Symbol</h2>
<p>The Panda has become the symbol of
WWF. The well-known panda logo of WWF originated from a panda named Chi Chi
that was transferred from the Beijing Zoo to the London Zoo in the same year
of the establishment of WWF.</p>
</section>
Definisi dan Penggunaan
Tag <section>
mendefinisikan bagian dalam dokumen.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung elemen tersebut.
Element | |||||
---|---|---|---|---|---|
<section> | 5.0 | 9.0 | 4.0 | 5.0 | 11.5 |
Atribut Global
Tag <section>
juga mendukung Atribut Global dalam HTML .
Atribut Acara
Tag <section>
juga mendukung Atribut Peristiwa dalam HTML .
Halaman Terkait
Referensi HTML DOM: Objek Bagian
Pengaturan CSS Default
Sebagian besar browser akan menampilkan <section>
elemen dengan nilai default berikut:
Contoh
section {
display: block;
}