This article mainly introduces the information contained in the HTML header.
1. <title>... </Title>
The title element helps you better identify one file. Name of a file when it is used as a homepage or favorites.
2. <link>... </Link>
Show the relationship between this document and other documents: <link rel = "stylesheet" href?“example.css "> and external style sheet connections.
Rel describes the relationship between html files and URLs. href describes the document name.
3. <style>... </Style>
You can include the style page in the document. The internal style of the document.
4. <base>... </Base>
Define an absolute path url for the relative path. After you download your document, you can also find
Url format: Communication Protocol: // host name/path/file name
5. <script>... </Script>
It is used to include scripts (commands written in a series of script languages). It can be Javascript or VbScript.
6. <meta>... </Meta>
Meta is used to simulate HTTP Response Header packets in HTML documents.
Common Features of meta Tags:
1) Help the home page to be logged on by various search engines;
2) define the language of the page;
3). Automatically refresh and refer to the new page;
4). Implement the animation effect during webpage conversion;
5). webpage Rating Evaluation;
6). Control page buffering;
7). Control the page display window.
Ii. Focus on the meta attributes
Meta has two attributes: name and http-equiv.
The name attribute is mainly used to describe a webpage, corresponding to content (webpage content ), this allows search engines to search for and classify robots. (currently, almost all search engines use online robots to automatically search for meta values to classify webpages ). The most important of these are description and keywords. Therefore, you should add a meta value to each page.
Name attribute
1. <meta name = "Generator" contect = "editplus"> describes generation tools (such as Microsoft FrontPage 4.0;
2. <meta name = "KEYWords" contect = "webjx, cnrose"> describe KEYWords Of Your webpage to search engines;
3. <meta name = "Description" contect = "webjx's blog"> tell the search engine the main content of your site;
4. <meta name = "Author" contect = "webjx"> tell the search engine the creator of your site;
5. <meta name = "Robots" contect = "all | none | index | noindex | follow | nofollow">
Where: Set to all: the file will be retrieved, and the link on the page can be queried; set to none: the file will not be retrieved, and the link on the page cannot be queried; set to index: the file will be retrieved; set to follow: the link on the page can be queried; set to noindex: the file will not be retrieved, but the link on the page can be queried; set to nofollow: files will not be retrieved, and links on the page can be queried.
Http-equiv attributes: 1. <meta http-equiv = "Content-Type" contect = "text/html "; charset = gb_2312-80 "> and <meta http-equiv =" Content-Language "contect =" zh-CN "> describe the text and Language used by the home page; also such as English is the ISO-8859-1 character set, there are BIG5, UTF-8, shift-Jis, Euc, Koi8-2 and other character sets;
2. <meta http-equiv = "Refresh" content = "n; url = http: // yourlink"> regularly redirects a webpage to http within n seconds; // yourlink;
3. <meta http-equiv = "Expires" contect = "Mon, 12 May 2001 00:20:00 GMT"> this parameter can be used to set the expiration time of a webpage. Once it Expires, it must be called on the server again. Note that the GMT time format must be used;
4. <meta http-equiv = "Pragma" contect = "no-cache"> This is used to disable the browser from accessing the page content from the cache of the local machine, once the page is set, it cannot be called out from the Cache;
5. <meta http-equiv = "set-cookie" contect = "Mon, 12 May 2004 00:20:00 GMT"> cookie setting: If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;
6. <meta http-equiv = "Pics-label" contect = ""> webpage rating, which has a content setting in internet Options of IE, can prevent browsing some restricted websites, the website's restriction level is set through the meta attribute;
7. <meta http-equiv = "windows-Target" contect = "_ top"> force the page to be displayed on an independent page in the current window, it can prevent your webpage from being called as a frame page by others;
8. <meta http-equiv = "Page-Enter" contect = "revealTrans (duration = 10, transtion = 50) "> and <meta http-equiv =" Page-Exit "contect =" revealTrans (duration = 20, transtion = 6) "> set the special effect when you enter and Exit the Page, this function is called "format/Webpage transition" in FrontPage, but the page to be added cannot be a frame page.
The Duration value is the dynamic transition time of the webpage, in seconds.
Transition is a transitional mode. Its value ranges from 0 to 23, corresponding to 24 Transition modes respectively. See the following table:
0: box-like contraction; 1: box-like radiation; 2: Circular contraction; 3: Circular radiation; 4: from bottom up; 5: from top down; 6: from left to right; 7: from right to left; 8: vertical blinds; 9: horizontal blinds; 10: horizontal blinds; 11: vertical blinds; 12: dissolved at will; 13: expand from the left and right sides to the middle; 14: expand from the middle to the left and right sides; 15: expand from the upper and lower ends to the middle; 16: expand from the middle to the lower ends; 17: expand from the upper right to the lower left corner; 18: expand from the lower right to the upper left corner; 19: expand from the upper left to the lower right corner; 20: expand from the lower left to the upper right corner; 21: horizontal line; 22: vertical linear expansion; 23: a random transition mode is generated.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.