섹션 요소 관련 질문합니다.
조회수 432회
//
<html>
<head></head>
<body>
<header>
<nav></nav>
</header>
<main>
<section>
<header><h1></h1></header>
<p></p>
</section>
<article>
<header><h1></h1></header>
<article>
</main>
<footer></footer>
</body>
</html>
section 과 article 에 header를 넣을 수 있다고 하셨는데.. 위 처럼 마크업을 해도 되나요?
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
네, article 안에 넣는 것이 정의상 자연스럽지만 지금처럼 하셔도 무방할 것 같아요. 아래 문서를 참조해 보세요.
https://www.w3schools.com/tags/tag_header.asp https://www.w3schools.com/tags/tag_section.asp
-
(•́ ✖ •̀)
알 수 없는 사용자
-
댓글 입력