HTML/요소

BODY 내 구조 개념 --> 콘텐츠 구분 SECTION

컴공 윤서혜 학습일기 2020. 12. 24. 17:48

문서의 일반적인 영역을 설정

  • 일반적으로 h1~h6를 포함하여 식별
<h1>How to Fish</h1>
<section>
    <h2>Introduction</h2>
    <p>People have been catching fish for food since before recorded history…</p>
</section>

<section>
    <h2>Equipment</h2>
    <p>The first thing you’ll need is a fishing rod or pole that you find comfortable and is strong enough for the kind of fish you’re expecting to land…</p>
</section>

 

section은 문서의 구역을 설정하는것인데, 그 영역의 제목으로 h1~h6를 사용해서 구분한다.

 

div section
영역구분 영역구분
의미 X 의미 O (제목을 포함)