The secrets of meta tags

Source: Internet
Author: User
Meta tag is an auxiliary tag in the head area of the HTML language. In almost all webpages, we can see the following HTML code:
-----------------------------------------------
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
</Head>
-----------------------------------------------
This is a typical use of meta tags. How many parameters does a meta tag have? Why should we pay special attention to it? Let's explore the mysteries of Meta Tags together!
According to HTML language standard notes: Meta Tags are very important to website development. They can be used to identify authors, set page formats, annotate content feeds and keywords, and refresh pages.
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 display webpage content correctly and precisely. 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 (Introduction
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 of 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 truth is simple. These two statements allow search engines to accurately discover you and attract more people to visit your site!
According to the working principles 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, it searches for the keywords and decription on the page, add it 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 will not be able to add your site to the database, and the user will not be able to find your site.
2. If your keyword is poorly selected and the keyword density is not high, it is very unlikely that you will be clicked after dozens or even millions of sites.
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 tips for finding the right keywords is to search for websites with the same content as Lycos, Altavista, infoseek, and other search engines to view the META keywords of the top 10 websites, copy it 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 (that is, 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, the keyword is hidden in the page (the text color is defined 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.