Znacznik HTML <sekcja>
Przykład
Dwie sekcje w dokumencie:
<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>
Definicja i użycie
Znacznik <section>
definiuje sekcję w dokumencie.
Obsługa przeglądarki
Liczby w tabeli określają pierwszą wersję przeglądarki, która w pełni obsługuje dany element.
Element | |||||
---|---|---|---|---|---|
<section> | 5.0 | 9.0 | 4.0 | 5.0 | 11.5 |
Atrybuty globalne
Znacznik <section>
obsługuje również atrybuty globalne w HTML .
Atrybuty wydarzenia
Tag <section>
obsługuje również Atrybuty Zdarzeń w HTML .
Powiązane strony
Odniesienie HTML DOM: Obiekt sekcji
Domyślne ustawienia CSS
Większość przeglądarek wyświetla <section>
element z następującymi wartościami domyślnymi:
Przykład
section {
display: block;
}