No matter how wonderful your personal website is, it will be difficult for people to discover in the vast ocean of cyberspace. How to promote your personal website, the first methods people think of are nothing more than the following:
● Log in to your personal website in the search engine
● Add a link to your personal website on a well-known website
●Post a post in the forum to promote your personal website
Many people ignore the powerful effect of the HTML tag META. A good META tag design can greatly increase the possibility of your personal website being searched. Are you interested? Let me re-understand the META tag! The META tag is an auxiliary tag in the HEAD area of the HTML language. It is located between the
tag and theThe META tag is divided into two parts: HTTP header information (HTTP-EQUIV) and page description information (NAME).
HTTP-EQUIV is similar to the HTTP header protocol. It responds to the browser with some useful information to help display web page content correctly and accurately. Commonly used HTTP-EQUIV types are:
1, Content-Type and Content-Language (display character set settings)
Description: Set the character set used by the page to describe the text and language used to create the home page. The browser will call the corresponding character set to display the page content based on this.
Usage:
Note: The META tag defines the character set used by the HTML page as GB2132, which is the national standard Chinese character code. If "charset=GB2312" is replaced with "BIG5", the character set used on this page is the Traditional Chinese Big5 code. When you browse some foreign sites, IE browser will prompt you that you need to download xx language support to display the page correctly. This function is to know which character set needs to be used to display the page by reading the Content-Type attribute of the META tag of the HTML page. If the corresponding character set is not installed in the system, IE will prompt for downloading. Other languages also correspond to different charsets. For example, the Japanese character set is "iso-2022-jp" and the Korean character set is "ks_c_5601".
The Content of Content-Type can also be: text/xml and other document types;
Charset options: ISO-8859-1 (English), BIG5, UTF-8, SHIFT-Jis, Euc, Koi8-2, us-ascii, x-mac-roman, iso-8859-2, x-mac-ce, iso-2022-jp, x-sjis, x-euc-jp,euc-kr, iso-2022-kr, gb2312, gb_2312-80, x-euc-tw, x-cns11643-1,x-cns11643-2, etc. Character set; the Content of Content-Language can also be: EN, FR and other language codes.
2. Refresh
Description: How long (seconds) does it take for the web page to refresh itself, or how long does it take for the web page to automatically link to other web pages.
Usage:
Note: The 5 means that it will automatically refresh to the URL after staying for 5 seconds.
3、Expires
Description: Specify the expiration time of the web page in the cache. Once the web page expires, it must be retrieved from the server.
Usage:
Note: You must use the GMT time format, or set it directly to 0 (the number indicates how long it will expire after).
4. Pragma (cach mode)
Description: Prohibits the browser from accessing page content from the local machine's cache.
Usage:
Note: Web pages are not saved in the cache and are refreshed with each visit. With this setting, visitors will not be able to browse offline.
5. Set-Cookie (cookie setting)
Note: When the browser accesses a page, it will be stored in the cache. The next time it is accessed, it can be read from the cache to improve speed. Disable caching when you want visitors to refresh your ad's icon every time, or refresh your counter every time. Usually there is no need to disable caching for HTML files. For pages such as ASP, you can disable caching, because every page you see is dynamically generated on the server, and caching is meaningless. If the web page expires, the saved cookies will be deleted.
Usage:
Note: GMT time format must be used.
6. Window-target (display window settings)
Description: Force the page to be displayed as an independent page in the current window.
Usage:
Note: This attribute is used to prevent others from calling your page in the frame. Content options: _blank, _top, _self, _parent.
7. Pics-label (webpage RSAC rating)
Note: There is a content setting in IE's Internet options that can prevent browsing of some restricted websites, and the restriction level of the website is set through this parameter.
Usage:
Note: Do not set the level too high. RSAC's evaluation system provides a standard for evaluating Web site content. Users can set Microsoft Internet Explorer (IE3.0 or above) to exclude sites containing pornographic and violent content. The HTML in the example above was taken from Microsoft's homepage. (n 0 s 0 v 0 l 0) in the code means that the site does not contain inappropriate content. The rating is determined by RSAC, the rating agency of the American Entertainment Council. If you want to know more about the rating content of the RSAC rating system, or if you need to rate your own website, you can visit the RSAC website: http://www.rsac .org/.
8、Page-Enter、Page-Exit (Enter and Exit)
Description: These are some special effects when the page is loaded and called out.
Usage:
Note: blendTrans is a type of dynamic filter that produces a fade effect. Another dynamic filter, RevealTrans, can also be used for page entry and exit effects:
Duration represents the duration of the filter effect (unit: seconds)
Transition filter type. Indicates which special effect to use, the value is 0-23.
0 Rectangle shrink
1 Rectangular expansion
2 Circle reduction
3 Circle expansion
4 Refresh from bottom to top
5 Refresh from top to bottom
6 Refresh left to right
7 Refresh right to left
8 vertical blinds
9 horizontal blinds
10 Offset horizontal blinds
11 Offset vertical blinds
12 point spread
13 Refresh from left to right to the middle
14 Refresh from center to left and right
15 middle to top and bottom
16 Up and down to the middle
17 Lower right to upper left
18 Upper right to lower left
19 Upper left to lower right
20 Lower left to upper right
21 horizontal bars
22 vertical bars
23 Randomly select one of the above 22 types
9, MSThemeCompatible (XP theme)
Description: Whether to turn off the xp theme in IE
Usage:
Note: Turn off the blue three-dimensional button system display style of xp, which is very similar to win2k.
10, IE6 (Page Builder)
Description: The page generator generator is ie6
Usage:
Note: What it is made of depends on the manufacturer of similar products.
11. Content-Script-Type (script related)
Description: This is a recent W3C specification that specifies the type of script in the page.
Usage:
The above is the detailed content of Introduction to HTML page Meta (1). For more information, please follow other related articles on the PHP Chinese website!