All the following codes are between <head>...</head>, and the specific contents are:
1. <title>…</title>
Title element helps users better identify files, and there is only one. Make the file name when used as homepage or collection.
2. <link>…</link>
Shows the relationship between this document and other documents: <link rel=stylesheet href=s.css> and the connection between external stylesheets.
Rel describes the relationship between the html file and the url document, and href describes the document name.
3,<style>…</style>
Style pages can be included in the document. The internal style of the document itself.
4,<base>…</base>
Define an absolute path url for relative paths. After readers download your document, they can also know where to go.
url format: communication protocol://hostname/path/filename
5. <script>…</script>
The commands used to include scripts (a series of scripting languages) can be javascript or vbscript.
6. <meta>…</meta>
Common features of meta tags:
1. Help the homepage is logged in by major search engines
2. Define the language of the page
3. Automatically refresh and point to a new page
4. Implement animation effects when converting web pages
5. Web page rating evaluation
6. Control page buffering
7. Control the window on the web page.
meta is used to simulate the response header packet of the http protocol in an html document.
There are two types of properties of meta: name and http-equiv.
The name attribute is mainly used to describe web pages, corresponding to content (web page content), so that search engine robots can search and classify (currently, almost all search engines use online robots to automatically search meta values to classify web pages). The most important of these are description (the description of the site on search engines) and keywords (categorized keywords), so you should add a meta value to each page.
name attribute1. <meta name=generator contact=editplus> is used to illustrate the generation tool (such as Microsoft frontpage 4.0), etc.;
2. <meta name=keywords contact=VeVb,cnrose> explains the keywords of your web page to search engines;
3. <meta name=description contact=VeVb's blog>Tell search engines the main content of your site;
4. <meta name=author contact=VeVb> tells search engines the author of your site;
5. <meta name=robots contact=all|none|index|noindex|follow|nofollow>
The attributes are described as follows:
Set to all: the file will be retrieved and the links on the page can be queried;
Set to none: the file will not be retrieved, and the links on the page cannot be queried;
Set as index: the file will be retrieved;
Set to follow: The links on the page can be queried;
Set to noindex: the file will not be retrieved, but the links on the page can be queried;
Set to nofollow: the file will not be retrieved, and the links on the page can be queried.
http-equiv attribute1. <meta http-equiv=content-type contact=text/html;charset=gb_2312-80> and <meta http-equiv=content-language contact=zh-cn> are used to explain the text and language used in homepage production; for example, the English iso-8859-1 character set, and there are big5, utf-8, shift-jis, euc, koi8-2 and other character sets;
2. <meta http-equiv=refresh content=n; url=http://yourlink> Timely let the web page jump to the page within n seconds specified in the specified time http;//yourlink;
3. <meta http-equiv=expires contact=mon,12 may 2001 00:20:00 gmt> can be used to set the expiration time of the web page. Once it expires, it must be called on the server again. It should be noted that the gmt time format must be used;
4. <meta http-equiv=pragma contact=no-cache> is used to set the browser to prohibit the page content from the local cache. Once the settings are made, it cannot be called out from the cache again once it leaves the web page;
5. <meta http-equiv=set-cookie contact=mon,12 may 2004 00:20:00 gmt>cookie setting. If the web page expires, the saved cookies will be deleted. It is also necessary to use the gmt time format;
6. <meta http-equiv=pics-label contact=>Web page rating, there is a content setting in the Internet option of ie, which can prevent browsing some restricted websites, and the restriction level of the website is set through the meta attribute;
7. <meta http-equiv=windows-target contact=_top>Force the page to be displayed as an independent page in the current window, which can prevent your web page from being called by others as a frame page;
8. <meta http-equiv=page-enter contact=revealtrans(duration=10,transtion=50)> and <meta http-equiv=page-exit contact=revealtrans(duration=20,transtion=6)> set special effects when entering and leaving the page. This function is the format/web page transition in frontpage, but the added page cannot be a frame page.
The value of duration is the time for dynamic transition of the web page, in seconds.
transition is a transition method, its values are 0 to 23, corresponding to 24 transition methods respectively. The following table:
0 Box-shaped shrinkage 1 Box-shaped radiation
2 Round shrinkage 3 Round radiation
4 From bottom to top 5 From top to bottom
6 From left to right7 From right to left
8 Vertical blinds 9 Horizontal blinds
10 Horizontal grid blinds 11 Vertical grid blinds
12 Dissolve at will 13 spread from left and right ends to middle
14 expand from the middle to the left and right ends 15 expand from the upper and lower ends to the middle
16 Expand from the middle to the upper and lower ends17 Expand from the upper right corner to the lower left corner
18 Expand from the lower right corner to the upper left corner 19 Expand from the upper left corner to the lower right corner
20 Expand from the lower left corner to the upper right corner 21 Expand horizontally
22 Vertical linear expansion 23 Randomly generates a transition method