문제: 태그를 사용해서 3가지 색의 막대를 만들기
<div></div>
<section></section>
<article></article>
- div, section, article을 이용하여 3가지 색의 막대를 만들어보자
div {
background-color: red;
height: 100px;
}
section {
background-color: green;
height: 100px;
}
article {
background-color: blue;
height: 100px;
}

- 기본적으로 display가 block으로 설정되어 있어, height에만 100px을 주어 위와 같이 나오게 된다.