Meta tag is an auxiliary tag in the head area of the HTML language. In almost all pages, we can see
The following HTML code is used:
-----------------------------------------------
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
</Head>
-----------------------------------------------
This is a typical use of meta tags. How many meta tags have? What is the role of Meta Tags? Why are they particularly important?
What about it? Let's explore the mysteries of Meta Tags together!
According to HTML language standards, Meta Tags are very important for website development. They can be used to identify authors,
Set the page format, label the content feed and keywords, and refresh the page.
Meta Tags are divided into two parts: HTTP-EQUIV and name variables.
● The HTTP-EQUIV is similar to the HTTP header protocol, which responds to some useful information for the browser to help with correctness and Accuracy
Page content. Commonly used HTTP-EQUIV types are:
1. expires (TERM)
Note: You can set the expiration time of a webpage. Once the webpage expires, you must re-access it on the server.
Usage: <meta HTTP-EQUIV = "expires" content = "wed, 26 Feb 1997 08:21:57 GMT">
Note: The GMT time format must be used.
2. 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-Cache">
Note: in this way, visitors will not be able to browse offline.
3. Refresh (refresh)
Note: If you need to enable the webpage to automatically link to other webpages on a regular basis, use this sentence.
Usage: <meta HTTP-EQUIV = "refresh" content = "5; url = http://www.yahoo.com">
Note: 5 indicates that the URL is automatically refreshed after 5 seconds.
4. Set-cookie (cookie setting)
Note: If the webpage expires, the cookie on the disk will be deleted.
Usage: <meta HTTP-EQUIV = "Set-cookie" content = "cookievalue = xxx;
Expires = Wednesday, 21-oct-98 16:14:21 GMT; Path =/">
Note: The GMT time format must be used.
5. Window-target (display window settings)
Note: The Force page is displayed on an independent page in the current window.
Usage: <meta HTTP-EQUIV = "window-target" content = "_ top">
Note: It is used to prevent others from calling your page in the framework.
5. Content-Type (display character set setting)
Description: sets the character set used on the page. (We have already introduced the functions of the font design)
Usage: <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
● The syntax format of the name variable of the meat tag is:
<Meta name = "XXX" content = "xxxxxxxxxxxxxxxxxx">
XXX has the following parameters:
1. Keywords)
Note: keywords are used to tell the search engine what keywords are on your webpage.
Example: <meta name = "keywords" content = "Life, universe, mankind, plants,
Relationships, the meaning of life, science ">
2. Description)
Description: description is used to tell the search engine the main content of your website.
Example: <meta name = "Description" content = "this page is about the meaning
Life, the universe, mankind and plants. ">
3. Robots (robot wizard)
Note: robots is used to tell robots which pages need to be indexed and which pages do not need to be indexed.
Content parameters include all, none, index, noindex, follow, and nofollow. The default value is all.
Example: <meta name = "Robots" content = "NONE">
4. Author (author)
Note: the author of the webpage
Example: <meta name = "author" content = "Ajie, ajie@netease.com">
These are some of the basic usage of meta tags, the most important of which is the setting of keywords and description.
Why? The principle is simple. These two statements allow search engines to precisely discover you and attract more people to access them.
Your site!
According to the working principle of popular search engines (such as Lycos and Altavista), the search engine first sends robots to automatically
Search on www. When a new website is found, the keywords and decription in the page are retrieved and added to
Your database, and then sort the website according to the keyword density.
That is to say:
1. If there is no meta tag for keywords and description on your page, the robot is
If you cannot add your site to the database, it is impossible for users to search for your site.
2. If your keyword is poorly selected and the keyword density is not high, it will be placed behind dozens or even millions of sites.
The possibility of being clicked is also very small.
Therefore, we must remember to add the meta tags of keywords and description, and write the keywords and introduction as much as possible.
The taboos for writing keywords are:
1. Do not use common words. For example, WWW, homepage, net, and Web.
2. Do not use adjectives or adverbs. For example, the best and the largest.
3. Do not use general words as accurate as possible. For example, you can switch to v998 instead of a "Motorola mobile phone ".
One of the skills to find the right keywords is: To search engines such as Lycos, Alta, and infoseek, search is similar to your content
To view the META keywords of the top 10 websites, and copy them to your site.
Here, we will give you a keyword for the Microsoft Multimedia Website:
<Meta name = "keywords" content = "joke, music, MP3, media, audio,
Joke of the day, downloads, free music, horoscope, radio, video,
Music downloads, movies, radio station, Media Player, free,
Download, weather, horoscopes, Windows Media Technologies,
Online, radio station guide, free download ">
Small resources: some of the most commonly used search terms (I .e. keywords) can be
Http://www.searchterms.com/
Http://eyescream.com/yahootop200.html
The two websites show the ranking of the most popular search terms on the Internet each month.
In addition, to improve the search click rate, there are also some "tricks ":
1. To increase the keyword density, hide the keyword in the page (define the text color as the same as the background color ).
2. add keywords to the alt comment statement of the image.
For example,
3. Use HTML comments to add a large number of keywords to the page code.
Usage: <! --- Insert keywords here --->