Document Head Elements
- Specifies a base URL for all relative
href
and other links in the document. Must appear before any element that refers to an external resource. HTML permits only onebase
element for each document. Thebase
element has attributes, but no contents. - A development version of BASE is mentioned in HTML Tags; standardized in HTML 2.0; still current.
(deprecated)
- Specifies a base font size, typeface, and color for the document. Used together with
font
elements. Deprecated in favor of stylesheets. - Standardized in HTML 3.2; deprecated in HTML 4.0 Transitional; invalid in HTML 4.0 Strict.
(deprecated)
isindex
could either appear in the document head or in the body, but only once in a document. See Forms.
>
- Specifies links to other documents, such as previous and next links, or alternate versions. A common use is to link to external stylesheets, using the form:
- A less-common, but important, usage is to supply navigation hints consistently through use of microformats. Several common relationships are defined, that may be exposed to users through the browser interface rather than directly in the web page.
- A document's
head
element may contain any number oflink
elements. Thelink
element has attributes, but no contents. - LINK existed in HTML Internet Draft 1.2, and was standardized in HTML 2.0; still current.
>
- Can be used to specify additional metadata about a document, such as its author, publication date, expiration date, page description, keywords, or other information not provided through the other header elements and attributes. Because of their generic nature,
meta
elements specify associative key-value pairs. In general, a meta element conveys hidden information about the document. Several meta tags can be used, all of which should be nested in the head element. The specific purpose of each meta element is defined by its attributes. - In one form,
meta
elements can specify HTTP headers which should be sent by a web server before the actual content, for example: - — this specifies that the page should be served with an HTTP header called
foo
that has a valuebar
. - In the general form, a
meta
element specifiesname
and associatedcontent
attributes describing aspects of the HTML page. To prevent possible ambiguity, an optional third attribute,scheme
, may be supplied to specify a semantic framework that defines the meaning of the key and its value: for example: - In this example, the
meta
element identifies itself as containing thefoo
element, with a value ofbar
, from the DC or Dublin Core resource description framework. - Standardized in HTML 2.0; still current.
- Used for including generic objects within the document header. Though rarely used within a
head
element, it could potentially be used to extract foreign data and associate it with the current document. - Standardized in HTML 4.0; still current.
- Can act as a container for script instructions or link to an external script with the optional
src
attribute. Also usable in the document body to dynamically generate either both block or inline content. - Standardized in HTML 3.2; still current.
- Specifies a style for the document, usually in the form:
- Can either act as a container for style instructions or link to external stylesheets – for example, in CSS, with
@import
directives of the form: - Standardized in HTML 3.2; still current.
- Define a document title. Required in every HTML and XHTML document. User agents may use the title in different ways. For example:
- Web browsers usually display it in a window's title bar when the window is open, and (where applicable) in the task bar when the window is minimized.
- It may become the default filename when saving the page.
- Search engines’ web crawlers may pay particular attention to the words used in the title.
- The
title
element must not contain other elements, only text. Only onetitle
element is permitted in a document. - TITLE existed in HTML Tags, and was standardized in HTML 2.0; still current.
Read more about this topic: HTML Element
Famous quotes containing the words document, head and/or elements:
“... research is never completed ... Around the corner lurks another possibility of interview, another book to read, a courthouse to explore, a document to verify.”
—Catherine Drinker Bowen (18971973)
“Thus do I want man and woman to be: the one fit to wage war and the other fit to give birth, but both fit to dance with head and feet.”
—Friedrich Nietzsche (18441900)
“The Laws of Nature are just, but terrible. There is no weak mercy in them. Cause and consequence are inseparable and inevitable. The elements have no forbearance. The fire burns, the water drowns, the air consumes, the earth buries. And perhaps it would be well for our race if the punishment of crimes against the Laws of Man were as inevitable as the punishment of crimes against the Laws of Naturewere Man as unerring in his judgments as Nature.”
—Henry Wadsworth Longfellow (18071882)