가로폭 전체의 넓이를 가지는 직사각형 형태
address, article, aside, audio, blockquote, canvas, dd, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, noscript, ol, output, p, pre, section, table, ul, video
컨텐츠가 가지는 지점까지의 넓이를 가진다.
a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, small, script, select, span, strong, sub, sup, textarea, tt, var
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
div{
background : gray;
margin-top: 22px;
}
span{
background: green;
margin-top: 22px;
}
</style>
<body>
<div>Block element 1</div>
<div>Block element 2</div>
<span>inline element 1</span>
<span>inline element 2</span>
</body>
</html>