Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

<head>: The Document Metadata (Header) element

BaselineWidely available

The<head>HTML element contains machine-readable information (metadata) about the document, like itstitle,scripts, andstyle sheets. There can be only one<head> element in an HTML document.

Note:<head> primarily holds information for machine processing, not human-readability. For human-visible information, like top-level headings and listed authors, see the<header> element.

Attributes

This element includes theglobal attributes.

profileDeprecated

TheURIs of one or more metadata profiles, separated bywhite space.

Examples

html
<!doctype html><html lang="en-US">  <head>    <meta charset="UTF-8" />    <meta name="viewport" content="width=device-width" />    <title>Document title</title>  </head></html>

Technical summary

Content categoriesNone.
Permitted content

If the document is an<iframe>srcdoc document, or if title information is available from a higher level protocol (like the subject line in HTML email), zero or more elements of metadata content.

Otherwise, one or more elements of metadata content where exactly one is a<title> element.

Tag omission The start tag may be omitted if the first thing inside the<head> element is an element.
The end tag may be omitted if the first thing following the<head> element is not a space character or a comment.
Permitted parentsAn<html> element, as its first child.
Implicit ARIA roleNo corresponding role
Permitted ARIA rolesNorole permitted
DOM interfaceHTMLHeadElement

Specifications

Specification
HTML
# the-head-element

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp