프로그래밍/HTML

Meta 태그

안싱미 2016. 4. 28. 16:27

메타태그란 html 문서의 위쪽에 위치하는 태그로서 브라우저와 검색 엔진을 사용할 수 있도록 문서의 정보를 포함하고 있다.


이 코드를 보면 meta charset 으로 이 html 문서에서 UTF-8의 문자셋을 이용하겠다는 것이고, description, keywords, author는  html 문서의 제작자와 키워드, 설명을 나타낸 것이다. 

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Hege Refsnes">
</head>
<body>
<p>All meta information goes in the head section...</p>
</body>
</html>