Menu
The head
tag, or Document Metadata element, contains metadata and resides after the <html>
tag and before the opening <body>
tag in a document.
Metadata is read by machines and not displayed. It is information about the current document, such as the title, character set, styles, scripts, etc. These tags can be used inside the <head>
tag:
<title>
<style>
<base>
<link>
<meta>
<script>
<noscript>
<!DOCTYPE html>
<html>
<head>
<title>This is the document's title</title>
</head>
<body>
<h1>This is the heading of the document</h1>
<p>This is some body content.</p>
</body>
</html>
User-submitted codepen.io examples of <head>
↴
Submit a codepen.io link that demonstrates <head>
: