[Transfer] Method for using Meta label

xiaoxiao2021-03-06  39

Meta is a response head message used to simulate the HTTP protocol in the HTML document. Meta labels are used for the and of the web page, many of the Meta labels. There are two properties of Meta: Name and Http-Equiv. The Name property is primarily used to describe the web page, corresponding to Content (web content), to search for engine robots to find, classification (currently almost all search engines) use online robots to automatically find meta values ​​to web page categories). This is the most important thing about Description (Site on search engine) and keywords, so you should add a meta value per page. There are more commonly used:

Name attribute

1, Tell the search for your author's author;

5,

And to illustrate the text and language used by the home page;

Another example is ISO-8859-1 character set, as well as character sets such as BIG5, UTF-8, Shift-JIS, EUC, KOI8-2;

2, Time to let the webpage within the specified time n, jump to the page http: // YourLink;

3, You can use the expiration time of the web page, once expired, you must reuse on the server. It should be noted that the GMT time format must be used; 4, is used to set the ban on the cache from the local machine, set Once you leave the web page, you cannot call out from Cache;

5, cookie setting, if the web is expired, the cookie of the store will be deleted. It is also necessary to use the GMT time format;

6, Forced page Displayed in a stand-alone page in the current window, it is possible to prevent its own web page from being used as a frame page as a Frame page;

8, and Set the special effects when entering and leaving the page, this function is" Format / Web Transition "in FrontPage, but the added page cannot be an Frame page.

The above is a commonly used meta attribute. Friends with personal homepage may wish to add it in your home page, the effect is different :).

转载请注明原文地址:https://www.9cbs.com/read-117716.html

New Post(0)