sementic tag를 사용하는 이유

sementic tag 종류

section 나누기

<h1>Choosing an Apple</h1>
<section>
    <h2>Introduction</h2>
    <p>This document provides a guide to help with the important task of choosing the correct Apple.</p>
</section>

<section>
    <h2>Criteria</h2>
    <p>There are many different criteria to be considered when choosing an Apple — size, color, firmness, sweetness, tartness...</p>
</section>

Untitled

Untitled

Untitled

내가 생각할 때 article과 section

개미를 예시로 들자면

개미 = section

개미머리, 가슴, article이다

section 의 정의가 재사용할 수 있는 독립적인 컨텐츠이기에 개미는 재사용할 수 있는 독립적인 컨텐츠이다.

하지만 개미의 머리,가슴,배는 section 이 아닌 article의 정의(구분)처럼 article이다

즉, 가장 큰 개념(부모)은 section 이라는 것!

앞으로 헷갈리면 개미 예제를 생각해보면 될 것이다!