|
|
|
The <head ... </head> tag contains
information about the current document, such as its title, keywords that may be
useful to search engines, and other data that is not considered document
content.
Specifies the title of the document. You should use the
<title> ... </title> tag to identify the
contents of your page. It
is normally displayed in the title bar of the browser.
Information about a document rather than document content is contained in
<meta ... > tags. There is no end
tag. The http-equiv="server
defined name" content="..."
attribute is used by HTTP servers to gather information for HTTP response
message headers. The name="your defined name"
content="..." attribute is used for a property name that may be
defined by you, search engines, or other information not to be displayed.
Some examples would be:
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
- This indicates the character set used in the document, in this case a
extended character set for Western European languages.<meta http-equiv="Expires"
content="Tue, 20 Aug 1996 14:25:27 GMT">
- This can be used by caches to determine when to fetch a fresh copy of the
associated document. <meta name="Author"
content="Peter Conrad Cumminsky"> -
This sets a value for the Author property which may be used to identify who
wrote the page.<meta name="keywords"
content="HTML,Webmaster,tutorials"> -
A common use for meta is to specify
keywords that a search engine may use to improve the quality of search
results.The <link ... href="URL">
tag has no content, it conveys relationship information that may be rendered by
browsers in a variety of ways (e.g., a tool-bar with a drop-down menu of links)
or to help search engines find alternate versions of the page (i.e., different
languages) or to load a style sheet or script attached to the page. The
rel attribute specifies a forward link and
the rev attribute specifies a reverse
link. the type attribute specifies
the programming language and the media
attribute specifies the intended output such as "screen"
or "print". Download a list of
registered content types from
ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/. You can find
a list of media descriptors at
http://www.w3.org/TR/html401/types.html#type-media-descriptors
.
A couple of examples of the link tag would
be:
<link rel="stylesheet"
type="text/css" href="http://www.w3.org/StyleSheets/Core/Traditional">
- Load a Style Sheet.<LINK title="The tutorial in Dutch"
Previous Chapter | Home |
Up | Next Chapter