|
|
|
HTML head tag and its uses |
Head tag of a web page holds various tags and information about the page. No content which is to be displayed to the browser goes inside the head tags. This head tag is one of the primary tags of basic html tags and should be there for all type of pages. Within the head tag we can keep following tags.
Title, script, meta, link, script, base
One pair of head tag ( opening tag and closing tag) is used inside a page
The scripts kept within the head tag loaded first for use and by default scripts within the head tag or content can use them.
Head tag comes before the body tags of the page and within the html tags of the page.
Here is a basic structure of the page
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>(Type a title for your page here)</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>
<body >
</body>
</html>
As you have seen how the head tag is used before body tags and stores various script and information about the page. Some of the important tags like title, script , style etc are kept inside this head tag.
| |
| Subscribe |
|
Submit your email address and receive
article and product notifications. Your email is safe with us.
|
|
|
|
|
|