Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

head element


 

head element

All data in the header section of an HTML document is considered "meta-data", meaning "data about data". The information in this section is not normally displayed directly. Instead elements such as style affect the appearance of other elements in the document.

The head element must contain a title element. This element is used to set the title of the HTML document, which is commonly displayed by the web browser in the title bar of the window. Here is an example of the use of the title element:

 <head>
    <title>This is the Title</title>
 </head>
                                          

There can only be one title in the header section.

There may be any number of the following elements inside the head element:

style
used to embedded stylesheet rules in a document. In general real world web pages should link to an external stylesheet using the link element. Many examples use embedded styles for simplicity and assume the reader will place the styles in an external stylesheet when they use the examples.
link
used to describe various types of links, e.g. to import an external stylesheet, give the location of the RSS feed for the page, etc. The type of link is set using the rel attribute. The type attribute specifies the MIME type of the document found at the location given by the href attribute. This allows the browser to ignore links to MIME types it does not support.
  <link rel="stylesheet" type="text/css" href="style.css">
  <link rel="alternate" type="application/rss+xml" href="rss.aspx" title="RSS 2.0">
                                          
script
used to link to an external Javascript file or to embedded Javascript in the page. Linking to an external file is the preferred technique in real web pages though many examples embedded the script for simplicity.
meta
used to set additional meta-data properties for the HTML document, such as related keywords, etc.
object
embeds a generic object. This element is not commonly used in the header section. It is normally used in the body section.

There may also be a single base element. This element sets the base URI for resolving relative URIs. It is rarely necessary to use this element.

 

 

All text is available under the terms of the GNU Free Documentation License
Source : Wikibooks


 

 



 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Random image example(PHP)
Find a word in a string(ASP)
color changer(Javascript)
Processor information(PHP)
mouse position(VB)
copy a file from one location to another(VBScript)
font exists(VB)
Resize an image(PHP)




Copyright © 2004 by programmershelp.co.uk