1. <meta http-equiv = plain Content-Type plain content = plain text/html; charset = gb2312 plain> 〃〉
Define characters of the content displayed on the page;
This is the most common usage of META. When creating a webpage, you will see it in pure HTML code. Its function is to define the language of your webpage. When a visitor browses your webpage, the browser will automatically identify and set the language in the webpage. If you set a GB code on the webpage and the visitor does not install the GB code, the webpage will only display the default browser language set by the visitor. Similarly, if the webpage is in English, charset = en.
2. Automatically refresh the page
<Meta HTTP-EQUIV = response refresh response CONTENT = bytes 8; URL =Http://yahoo.comLatency>
When you browse a webpage, you will find that some pages are automatically transferred to another page several seconds later. This is the function of META refresh. In CONTENT, 8 indicates the set number of seconds, the URL is the webpage address automatically connected after 8 seconds.
<Meta http-equiv = Refresh Content = 30> Refresh yourself
3. Expires (term)
Description: it specifies the expiration time of the webpage in the cache. Once the webpage expires, it must be re-accessed on the server.
Usage: <Meta http-equiv = Expires Content = 0>
<Meta http-equiv = Expires Content = Wed, 26 Feb 1997 08:21:57 GMT>
Note: the GMT time format must be used, or the value is set to 0 (the number indicates the time after expiration ).
4. Pragma (cach mode)
Note: The browser is prohibited from reading the page content from the cache of the local machine.
Usage: <Meta http-equiv = Pragma Content = No-cach>
Note: The webpage is not saved in the cache, and the page is refreshed every time the webpage is accessed. In this way, visitors will not be able to browse offline.
4. Pragma (cach mode)
Note: The browser is prohibited from reading the page content from the cache of the local machine.
Usage: <Meta http-equiv = Pragma Content = No-cach>
Note: The webpage is not saved in the cache, and the page is refreshed every time the webpage is accessed. In this way, visitors will not be able to browse offline.
5. Set-Cookie (cookie setting)
Note: when a browser accesses a page, the page will be cached and can be read from the cache next time. When you want a visitor to refresh the icon of your advertisement every time, or refresh your counter every time, the cache will be disabled. Generally, you do not need to disable caching for HTML files. For pages such as ASP, you can disable caching, because every time you see a page that is dynamically generated on the server, the cache becomes meaningless. If the webpage expires, the cookie on the disk will be deleted.
Usage: <Meta http-equiv = Set-Cookie Content = cookievalue = xxx; expires = Wednesday,
21---98 16:14:21 GMT; path =/>
Note: the GMT time format must be used.
Html tag details webpage tag details meta tag role
6. Window-target (display Window settings)
Note: The Force page is displayed on an independent page in the current window.
Usage: <Meta http-equiv = Widow-target Content = _ top>
Note: This attribute is used to prevent others from calling your page in the framework. Content Options: _ blank, _ top, _ self, and _ parent.
7. Pics-label (webpage RSAC rating)
Note: There is a content setting in Internet options of IE to prevent restricted websites from being browsed.
Do not set this parameter.
Usage: <META http-equiv = Pics-label Contect =
PICS-1.1 'http: // www.rsac.org/ratingsv01.html'
I gen comment 'rsaci North America Sever'