head elementhtml element.iframe
srcdoc document or if
title information is available from a higher-level protocol: Zero
or more elements of metadata content.title element.
interface HTMLHeadElement : HTMLElement {};
The head element represents
a collection of metadata for the Document.
The collection of metadata in a head element can be large or small. Here is
an example of a very short one:
<!doctype html> <html> <head> <title>A document with a short head</title> </head> <body> ...
Here is an example of a longer one:
<!DOCTYPE HTML> <HTML> <HEAD> <META CHARSET="UTF-8"> <BASE HREF="http://www.example.com/"> <TITLE>An application with a long head</TITLE> <LINK REL="STYLESHEET" HREF="default.css"> <LINK REL="STYLESHEET ALTERNATE" HREF="big.css" TITLE="Big Text"> <SCRIPT SRC="support.js"></SCRIPT> <META NAME="APPLICATION-NAME" CONTENT="Long headed application"> </HEAD> <BODY> ...
The title element is a required child in most
situations, but when a higher-level protocol provides title
information, e.g. in the Subject line of an e-mail when HTML is
used as an e-mail authoring format, the title element can be omitted.