The head of an HTML document is an unordered collection of information about
the document. It requires the
<TITLE>
element between
<HEAD>
and </HEAD>
elements thus :
<HEAD>
<TITLE> Introduction to HTML </TITLE>
</HEAD>
The <HEAD>
and </HEAD>
elements do
not directly affect the look of the document when rendered.
The following elements are related to the head element. While not directly
affecting the look of the document when rendered (apart from the
<STYLE>
element Style
Sheet declarations), they do provide (if used) important information
to the HTML user agent.
<BASE>
- Allows base address of HTML document to be specified
<BASEFONT>
- Allows setting of a single font to use throughout the document
<ISINDEX>
- Allows keyword searching of the document
<LINK>
- Indicate relationships between documents
<META>
- Specifies document information useable by server/clients
<NEXTID>
- Creates unique document identifiers
<STYLE>
- Used by browsers that support use of style sheets to specify styles within the document
<TITLE>
- Specifies the title of the document
<SCRIPT>
- Contains local or links to remote script code
NOTE : The Title element is the only element described here that is required as part of the Head of a HTML document for conformance to any HTML standard.
CLASS="Style Sheet class
name"
The CLASS
attribute is used to specify the
<HEAD>
as using a particular style sheet class. See the
Style
Sheets topic for more information.
ID="Unique element identifier"
The ID
attribute can be used to either reference a unique style
sheet identifier, or to provide a unique name for the
<HEAD>
element for scripting purposes. Any
<HEAD>
element with an ID
attribute can be
directly manipulated in script by referencing its ID
attribute,
rather than working through the
All
collection to determine the element. See the
Scripting
introduction topic for more information.
Consistent with Internet Explorer 4.0's
Dynamic
HTML object model, the <HEAD>
element supports various
properties and methods. In its role as a document structure element, it supports
no events.
<HEAD...>
Properties
Of the
Standard
Dynamic HTML properties, <HEAD>
supports
className, document,
id, isTextEdit,
lang, parentElement,
sourceIndex, tagName
and title. See the
Standard
Dynamic HTML properties topic for details.
<HEAD...>
Methods
Of the
Standard
Dynamic HTML methods, <HEAD>
supports
contains, getAttribute,
removeAttribute and
setAttribute. See the
Standard
Dynamic HTML methods topic for details.
© 1995-1998, Stephen Le Hunte
file: /Techref/language/html/ib/Document_Structure_Elements/head.htm, 5KB, , updated: 2019/10/11 13:43, local time: 2024/11/24 17:16,
3.133.108.224:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/language/html/ib/Document_Structure_Elements/head.htm"> <HEAD></A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.