HTML <head> tag
Definition and Usage
The head element can contain information about the document. The browser
does not display the "head information" to the user. The following
tags can be in the head section: <base>, <link>, <meta>,
<script>, <style>, and <title>.
Differences Between HTML and XHTML
NONE
Tips and Notes
Always specify a title for the document!
Example
| Source |
| <html> <head>
<title>Title of the document</title>
</head>
<body>
...
...
...
</body>
</html> |
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| profile |
URL |
A space separated list of URL's that contains meta data information
about the page |
STF |
Standard Attributes
For a full description, go to Standard
Attributes.
Try-It-Yourself Demos
The title of a
document
The title information inside a head element is not displayed in the browser
window.
One target for all
links
How to use the base tag to let all the links on a page have the same target.
Styles in HTML
How to format an HTML document with style information added to the <head>
section.
Link to an
external style sheet
How to use the <link> tag to link to an external style sheet.
Document
description
Information inside a meta element describes the document.
Document
keywords
Information inside a meta element describes the document's keywords.
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|