Thẻ HTML <section>


Thí dụ

Hai phần trong một tài liệu:

<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>

Định nghĩa và Cách sử dụng

Thẻ <section>xác định một phần trong tài liệu.


Hỗ trợ trình duyệt

Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ phần tử.

Element
<section> 5.0 9.0 4.0 5.0 11.5

Thuộc tính toàn cầu

Thẻ <section>cũng hỗ trợ Thuộc tính chung trong HTML .


Thuộc tính sự kiện

Thẻ <section>cũng hỗ trợ Thuộc tính sự kiện trong HTML .


Các trang liên quan

Tham chiếu DOM HTML: Đối tượng Phần


Cài đặt CSS mặc định

Hầu hết các trình duyệt sẽ hiển thị <section>phần tử với các giá trị mặc định sau:

Thí dụ

section {
  display: block;
}