김루루의 개발일기

Doctype & Document Structure - HTML 0613 본문

프론트엔드/HTML

Doctype & Document Structure - HTML 0613

김루루 2021. 6. 14. 01:13
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" 
          content="IE=edge">
    <meta name="viewport" 
          content="width=device-width, 
                   initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  
</body>
</html>

<!DOCTYPE html>

"지금부터 작성된 문서는 html5버전 (가장최신의 웹표준)으로 작성된 문서다. "라고 선언함!

DOCTYPE(documentType)은 반드시 대문자로 써야됨.

 

<html> </html>

이 안에는 반드시 2개의 태그만 작성할 수 있다.

(<head><body>)

 

<head></head>

중요하지만 보이지 않는 것들을 선언하는곳.

 

<body></body>

웹문서에서 보여주는 모든 콘텐츠를 담아내는 요소

 

 

Comments