<div>
,<span>
은 내용물에 대해 나에게 어떤 것도 알려주지 못한다.
<form>
,<table>
,<article>
... 등의 예시가 있습니다. 이런 elements들은 내용물에 대해 확실한 정보를 준다.
semantic elements는 페이지 레이아웃을 의미있게 묘사해준다. 또, 더 이해하기 쉽고 코드를 깔끔하게 정리할 수 있도록 도와준다.
<section>
Element<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>
<section>
<h2>Heading</h2>
<img>some image</img>
</section>
<div>
사용 권장.<header>
Element<article>
<header>
<h1>What Does WWF Do?</h1>
<p>WWF's mission:</p>
</header>
<p>WWF's mission is to stop the degradation of our planet's natural environment,
and build a future in which humans live in harmony with nature.</p>
</article>
<footer>
Element<footer>
<p>Posted by: Hege Refsnes</p>
<p>Contact information: <a href="mailto:someone@example.com">
someone@example.com</a>.</p>
</footer>
<nav>
Element<nav>
의 안에 있어야하는 건 아님. <nav>
는 오직 중요한 블록의 네비게이션 링크를 위한 것이다.<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
<aside>
Element<p>My family and I visited The Epcot center this summer.</p>
<aside>
<h4>Epcot Center</h4>
<p>The Epcot Center is a theme park in Disney World, Florida.</p>
</aside>