From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/element%2Fhead.html | 93 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 devdocs/html/element%2Fhead.html (limited to 'devdocs/html/element%2Fhead.html') diff --git a/devdocs/html/element%2Fhead.html b/devdocs/html/element%2Fhead.html new file mode 100644 index 00000000..4597cb8d --- /dev/null +++ b/devdocs/html/element%2Fhead.html @@ -0,0 +1,93 @@ +

<head>: The Document Metadata (Header) element

+

The <head> HTML element contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.

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 the global attributes.

+profile Deprecated Non-standard +

The URIs of one or more metadata profiles, separated by white 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 categories None.
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 parents An <html> element, as its first child.
Implicit ARIA role No corresponding role
Permitted ARIA roles No role permitted
DOM interface HTMLHeadElement
+

Specifications

+
+ + +
Specification
HTML Standard
# the-head-element
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
head1121Yes1514.41841411.0
profile1121Yes151–16.44.4184141–16.41.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head +

+
-- cgit v1.2.3