본문 바로가기
FrontEnd/HTML

HTML meta 요소는 무엇일까?

by 이도현 2021. 6. 29.

https://www.w3schools.com/html/html_head.asp

 

HTML head Elements

HTML - The Head Element The HTML element is a container for the following elements: , , , , , and . The HTML Element The element is a container for metadata (data about data) and is placed between the tag and the tag. HTML metadata is data about the HTML d

www.w3schools.com

The HTML <meta> Element
HTML <meta> 요소

The <meta> element is typically used to specify the character set, page description, keywords, author of the document, and viewport settings.
<meta> 요소는 일반적으로 문자 인코딩 구체화, 페이지 설명, 키워드, 문서의 작성자, 뷰포트 세팅 등에 주로 사용된다.

The metadata will not be displayed on the page, but are used by browsers (how to display content or reload page), by search engines (keywords), and other web services.

이 메타데이터는 페이지 상에는 보이지 않지만, 브라우저(컨텐츠를 보여주거나 화면 갱신), 서치엔진(키워드들), 다른 웹 서비스 들에 사용된다. 

Examples
예제

Define the character set used:
사용하는 문자 인코딩을 정의:

<meta charset="UTF-8">

Define keywords for search engines:

서치엔진들을 위한 키워드를 정의:

<meta name="keywords" content="HTML, CSS, JavaScript">

Define a description of your web page:

당신의 웹 페이지의 설명을 정의:

<meta name="description" content="Free Web tutorials">

Define the author of a page:

페이지의 작성자를 정의:

<meta name="author" content="John Doe">

Refresh document every 30 seconds:

문서를 매 30초마다 갱신:

<meta http-equiv="refresh" content="30">

Setting the viewport to make your website look good on all devices:

당신 웹사이트가 모든 디바이스들에서 잘 보이도록 하기위해 뷰포트를 세팅:

<meta name="viewport" content="width=device-width, initial-scale=1.0">