首頁 >web前端 >前端問答 >html5中section是什麼意思

html5中section是什麼意思

青灯夜游
青灯夜游原創
2022-03-15 17:56:088556瀏覽

在html5中,section的意思是“節”或“區段”,用於定義文檔中節(區段),例如章節、頭部、底部或文檔的其他區域;section標籤可以對文件中的內容進行分塊或分段。

html5中section是什麼意思

本教學操作環境:windows7系統、HTML5版、Dell G3電腦。

html5中section是什麼意思

標籤定義了文件的某個區域。例如章節、頭部、底部或文件的其他區域。

標籤對文件中的內容進行分塊或分段。

範例:文件的某個區域,解釋了什麼是WWF 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
</head>
<body>

<section>
  <h1>WWF</h1>
  <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>
  <h1>WWF&#39;s Panda symbol</h1>
  <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>

</body>
</html>

html5中section是什麼意思

說明:

標籤是HTML5 中的新標籤。

IE 8 或更早版本的 IE 瀏覽器不支援

標籤。

【相關推薦:html影片教學web前端

以上是html5中section是什麼意思的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn