The head tag in HTML is a very important symbol in the page tag, the head tag contains content that basically describes the basic attributes of the page, including title, character set, site information, site author information, site description, site keywords, search engine spider Guide, refresh and jump, Style sheet entry and other useful additional features. The content of the head tag is very important to the whole page, so let's introduce some of the things that are commonly used in the head tag.
First, must add the label
1, the company copyright notes
Example:<!---The site is designed by Monky,inc 06/2006--->
2. Web page display Character set
Simplified Chinese: <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
Traditional Chinese: <meta http-equiv= "Content-type" content= "text/html"; Charset=big5 ">
English: <meta http-equiv= "Content-type" content= "text/html"; Charset=iso-8859-1 ">
3, Web page creator information
Example: <meta name= "Author" content= "webmaster@yesky.com" >
4, Website introduction
Example:<meta name= "description" content= "website Tao Bar provides a full set of services for the establishment of a unit or individual station, including the Construction Station Guide (construction station flow, website pattern, website type, host and domain name, etc.), website production (web tools, markup languages, Web site Promotion (Web page optimization, standards, search engine research, website promotion, etc.), as well as new network technologies and models (WEB2.0,AJAX, vertical search engines, etc.) ">
5, search the key word
Example:<meta name= "keywords" content= "website pottery, site guide, web production, website promotion, web optimization, search engine, domain name registration, virtual hosting, free space, website login, Web tools, Markup Language, Web Effects" >
6, the Web page CSS specification
Example: <link href= "Style/style.css" rel= "stylesheet" type= "Text/css" >
7, page title
Example:<title> Web Tao _ software _ Pole yesky</title>
Second, you can choose to join the label
1, set the page expiration time. Once the page expires, it must be reopened on the server.
Example: <meta http-equiv= "Expires" content= "Wed Feb, 1997 08:21:57 GMT" >
2, prohibit the browser from the local computer cache to access the content of the page.
Example: <meta http-equiv= "Pragma" content= "No-cache" >
3, to prevent others in the framework of the call your page.
Example: <meta http-equiv= "Window-target" content= "_top" >
4, automatic jump.
Example: <meta http-equiv= "Refresh" content= "5; url=http://homepage.yesky.com/"", of which 5 refers to 5 seconds after the jump.
5. Web Search Robot Wizard. Used to tell search bots which pages need to be indexed and which pages don't need to be indexed.
Example: <meta name= "None", where the CONTENT parameter has all,none,index,noindex,follow,nofollow. The default is all.
6, Favorite folder icon
Example: <link rel = "Shortcut Icon" href= "Favicon.ico" >
All JavaScript calls take as much external calls as possible.
<script language= "JavaScript" src= "Script/script.js" ></SCRIPT>
Accompanying note:
<body> tags do not belong to the head area, here to emphasize that in order to ensure browser compatibility, you must set the page background <body bgcolor= "#FFFFFF" >