페이지 메타데이터에 유효한 HTML을 사용하면 Google에서 문서에 명시된 대로 메타데이터를 사용할 수 있습니다.
Google에서는 HTML이 잘못되었거나 HTML 표준과 일치하지 않더라도 HTML을 이해하려고 노력합니다. 그러나 마크업 오류가 있으면 Google 검색에서 메타데이터가 사용되는 방식에 문제가 발생할 수 있습니다.
페이지에 관한 메타데이터를 지정하기 위해 주로 사용되는 요소는 HTML 문서의 <head> 요소입니다. <head> 요소에 잘못된 요소를 사용하는 경우 Google에서 잘못된 요소 뒤에 표시되는 요소를 무시합니다.
<head> 요소에 유효한 요소 사용하기
HTML 표준에 따라 <head> 요소에는 다음과 같은 유효한 요소만 포함해야 하며 다른 잘못된 요소는 포함하면 안 됩니다.
title
meta
link
script
style
base
noscript
template
<head>에 유효하지 않은 요소 사용하지 않기
<head> 요소에서 위에 명시된 요소 외의 다른 요소는 HTML 표준에 의해 허용되지 않습니다. <head> 요소에 종종 사용되지만 이를 렌더링하는 것이 유효하지 않은 요소는 다음과 같습니다.
iframe
img
<head> 요소에 유효하지 않은 요소를 사용하지 않는 것이 좋습니다. 하지만 반드시 필요하다면 Google에 표시하려는 요소 뒤에 유효하지 않은 요소를 배치하세요. Google이 유효하지 않은 요소 중 하나를 감지하면 <head> 요소가 끝났다고 가정하며 <head> 요소에 있는 추가 요소 읽기를 중지합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-17(UTC)"],[[["Utilize valid HTML for page metadata to ensure Google can properly interpret and use it in search results."],["Include metadata within the `\u003chead\u003e` element of your HTML document, using only the valid elements specified by the HTML standard: `title`, `meta`, `link`, `script`, `style`, `base`, `noscript`, and `template`."],["Avoid using invalid elements like `\u003ciframe\u003e` and `\u003cimg\u003e` within the `\u003chead\u003e` element as this can disrupt Google's parsing and cause metadata to be ignored."],["If you must use invalid elements, place them after the valid metadata elements to minimize potential issues."]]],["Valid HTML is crucial for Google to utilize page metadata correctly. The `\u003chead\u003e` element is key for this; only specific elements (`title`, `meta`, `link`, `script`, `style`, `base`, `noscript`, `template`) are allowed within it. Invalid elements, like `iframe` or `img`, cause Google to ignore any subsequent elements within `\u003chead\u003e`. Avoid invalid elements; if used, place them after valid ones to ensure Google reads the desired metadata first.\n"]]