두가지 속성

하나는 인라인 속성 (자기 크기만큼만 크기를 잡음) span

block → div : 행을 통째로 잡음

Untitled

body안에 작성

h1 = 굵게

<!DOCTYPE html>
<html>
<head>
    <title>Document</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>

Hello world

띄어쓰기 두번써도 한번만 적용

<!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>
<body>
    HelloWorld
    Bye
    Hello  My name is cos
</body>
</html>

HelloWorld Bye Hello My name is cos

span, div 차이

span = inline

div = block