Html&CSS

0210_html4 vs html5 (선언문)

.Epona. 2020. 2. 11. 03:41

HTML 4 선언문

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html lang="ko" xml:lang="ko" xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>사이트의 제목넣기</title>
 <meta name="robots" content="noindex, nofollow" />
 <meta name="keywords" content="키워드넣기" />
 <meta name="description" content="설명넣기"/>
 <meta name="author" content="저자넣기"/>

 </head>

<body>

</body>

</html>


HTML5선언문

<!DOCTYPE html>
 <html lang="ko">
 <head>
 <meta  charset="utf-8"/>
 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>사이트의 제목넣기</title>
 <meta name="robots" content="noindex, nofollow" />
 <meta name="keywords" content="키워드넣기" />
 <meta name="description" content="설명넣기"/>
 <meta name="author" content="저자넣기"/>

 </head>

<body>

</body>

</html>
        
<!-- 주석: crtl + / -->
<!-- 복사 붙여넣기 : ctrl + D -->
<!-- 원하는 영역만 주석: ctrl + shifte + / -->