김루루의 개발일기
Doctype & Document Structure - HTML 0613 본문
<!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>
웹문서에서 보여주는 모든 콘텐츠를 담아내는 요소
'프론트엔드 > HTML' 카테고리의 다른 글
head 태그의 모든것/meta 태그 - HTML 0614 (0) | 2021.06.14 |
---|---|
기타 태그(abbr/address/pre/code) - HTML 06 (0) | 2021.06.14 |
Media 태그(audio태그/video태그/iframe태그) - HTML 0613 (0) | 2021.06.14 |
Table태그(표) - HTML 0612 (0) | 2021.06.13 |
Select태그 / Textarea태그/ button태그 - HTML 0612 (0) | 2021.06.13 |
Comments