- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- 현재 작성하고 있는 파일은 UTF-8 DOS파일입니다.-->
- <html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- </head>
- <body>
- </body>
- </html>
--------------------------------------------------------------------------------------------
4.6. 라인
<head> 요소는 모두 헤드 요소의 컨테이너입니다.
<head> 요소는 문서의 제목, 스크립트, 스타일, 메타 정보 등을 포함 할 수 있습니다.
<body>전에 </head>를 닫습니다.
다음 요소는 <head> 요소 7개 태그가 내부에 갈 수 있습니다.
<title> (이 요소는 헤드 부분에 필요합니다)
<head attributes(속성)>
head 태그의 1가지 속성
1.profile
Value : URL
설명 : 프로필 속성은 HTML5에서 지원되지 않습니다.
문법 : <head profile="http://www.example.com">
기술 : HTML5에서 지원되지 않습니다.
규칙의 집합을 포함하는 문서에 URL을 지정합니다.
규칙 깨끗이 <META> 태그의 콘텐츠 속성의 내용을
이해하기 위해 브라우저에 의해 판독 될 수 있습니다.
우선 적어 놓음
<meta>관련 내용
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
utf-8로 문서 작성 의미
<meta http-equiv="refresh" content="10"; url='10초 후에 url에 페이지 이동 의미' />
<meta http-equiv="Title" content="홈페이지 이름" />
<meta http-equiv="Subject" content="홈페이지 주제" />
<meta http-equiv="Keywords" content="검색 키워드(ex: tag, js, 홈피)" />
<meta http-equiv="Description" content="홈페이지 설명" />
검색엔진의 검색 결과값 의미
<meta http-equiv="Classification" content="카테고리 분류" />
<meta http-equiv="Author" content="홈페이지 제작자" />
<meta http-equiv="Publisher" content="홈페이지 제작사" />
<meta http-equiv="Other Agent" content="홈페이지 책임자" />
<meta http-equiv="Reply-To(Email)" content="메일주소" />
<meta http-equiv="Filename" content="파일명" />
<meta http-equiv="Author-Date(Date)" content="제작일" />
<meta http-equiv="Location" content="위치/국가" />
<meta http-equiv="Distribution" content="배포자" />
<meta http-equiv="Copyright" content="저작권" />
<meta http-equiv="Generator" content="문서 작성 툴(ex: Notepad)" />
<meta http-equiv="robots" content="noindex" />
index : 검색 허용 - noindex: 검색 차단
follow: 검색엔진이 반드시 링크 따라가야 한다는 것 명시
nofollow: 검색엔진이 반드시 링크 따라가야 한다는 것 명시
<meta http-equiv="pragma" content="no-cache" />
웹페이지가 유동적이다면 노캐쉬로 설정해놓아야 하며
좋은점은 인덱스 페이지 리딩이 무척 빨라진다는 것입니다.
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
Global Attributes 지원합니다.
'HTML > xhtml문법' 카테고리의 다른 글
<br>, <br /> 줄바꿈 (0) | 2014.01.18 |
---|---|
<body></body> 문서 본문 (0) | 2014.01.18 |
<html></html> 문서 시작과 끝을 선언 (0) | 2014.01.18 |
<!DOCTYPE> - HTML 버전 종류와 선언 (2) | 2014.01.17 |
HTML 기본 선언 설명 (0) | 2014.01.17 |