HTML HEAD

HEAD Tag in HTML

The header of an HTML document where information about the document is placed is identify by <head> and </head>. The <head> tag is a container for all the header elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.

The following tags can be added to the head section: <title>, <style>, <meta>, <link>, <script>, <noscript>, and <base>.

where

The HTML <title> Element


The <title> tag defines the title of the document which is not only display on the top of web browse on the title bar also very help ful for tell to search engine what is inside this page.

The HTML <link> Element


The <link> tag defines the relationship between a document and some external resource. For example if we use an C SS file for formatting our document then we use:

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

The HTML <style> Element


The <style> tag is used to define style information for an HTML document.

For example :

<head>
<style type="text/css">

 body

{

 background-color:yellow;

}
p {

color:blue;
}
</style>
</head>

The HTML <meta> Element


Metadata is data (information) about data. The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but very help full to search engine.

Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.

The HTML <script> Element
The <script> tag is used to define a client-side script, such as a JavaScript.