The Secret of META tags

Source: Internet
Author: User
Tags add format character set window
Meta tag, which is an auxiliary label for the HTML language Head area. In almost all of the page, we can see
To the HTML code similar to the following:

-----------------------------------------------
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
-----------------------------------------------

This is the typical use of meta tags. Meta tags have how many parameters, what's the effect, why do we have to be particularly heavy
What about it? Let's explore the secret of META tags!

According to the HTML language standard annotation: META tag is a very important label for website development, it can be used to identify authors,
Format pages, annotate content feeds and keywords, refresh pages, and more.

Meta tags are divided into two parts: http-equiv and name variables.

HTTP-EQUIV is similar to the HTTP header protocol, which responds to the browser with some useful information to help correct and accurate
To display the content of the Web page. Common types of HTTP-EQUIV are:

1.expires (term)
Description: Can be used to set the expiration time of a Web page. Once the page expires, it must be reopened on the server.
Usage: <meta http-equiv= "Expires" content= "Wed Feb, 1997 08:21:57 GMT" >
Note: The time format for GMT must be used.

2.Pragma (Cach mode)
Description: Prevents the browser from accessing the contents of the page from the local computer's cache.
Usage: <meta http-equiv= "Pragma" content= "No-cache" >
Note: This setting makes it impossible for visitors to browse offline.

3.Refresh (Refresh)
Note: You need to periodically let the page automatically link to other pages, then use this sentence.
Usage: <meta http-equiv= "Refresh" content= "5; Url=http://www.yahoo.com ">
Note: 5 of which is to stop for 5 seconds after the automatic refresh to the URL URLs.

4.set-cookie (Cookie Set)
Note: If the page expires, the saved cookie will be deleted.
Usage: <meta http-equiv= "Set-cookie" content= "cookievalue=xxx";
Expires=wednesday, 21-oct-98 16:14:21 GMT; path=/">
Note: The time format for GMT must be used.

5.window-target (display window settings)
Description: Forces the page to appear as a separate page in the current window.
Usage: <meta http-equiv= "Window-target" content= "_top" >
Note: Used to prevent others from calling your page in the frame.

5.content-type (display set of characters)
Description: Set the character set used by the page. (We have already described its role in the previous font design)
Usage: <meta http-equiv= "Content-type" content= "text/html"; charset=gb2312 ">


The meat label's name variable syntax format is:
<meta name= "xxx" content= "xxxxxxxxxxxxxxxxxx" >
where xxx mainly has the following several parameters:

1.Keywords (keywords)
Description: Keywords is used to tell search engines what the keywords are on your page.
For example: <meta NAME = "keywords" content= "life, Universe, mankind, plants,
Relationships, the meaning of Life, science ">

2.description (Introduction)
Description: Description used to tell the search engine your site's main content.
For example: <meta name= "description" content= "This page is about the meaning of
Life, the Universe, mankind and plants. >

3.robots (Robot Wizard)
Description: Robots are used to tell search bots which pages need to be indexed and which pages do not need to be indexed.
The parameters of the content are all,none,index,noindex,follow,nofollow. The default is all.
Example: <meta name= "Robots" content= "None" >

4.author (author)
Description: The author of the callout page
For example: <meta name= "AUTHOR" content= "Ajie, ajie@netease.com">

These are some of the basic uses of META tags, the most important of which are: keywords and description settings.

Why, then? The reason is very simple, these two statements can let the search engine can accurately discover you, attracts more people to visit
Your site!

According to the current popular search engine (Lycos,altavista, etc.) working principle, search engine first dispatched robot automatic
Search on www And when new sites are found, they retrieve keywords and decription from the page and add them to the
Your database, and then sort the sites according to the density of the keywords.

Other words:
1. If you don't have keywords and description meta tags on your page, then the robot is
Can not add your site to the database, users will not be able to search your site.

2. If your keyword selection is not good, the keyword density is not high, is ranked in dozens of or even millions of of the back of the site
The likelihood of being clicked is also very small.

So we have to remember to add the META tags for keywords and description, and write the keywords and introductions as best we can.

The taboo for writing keywords is:
1. Do not use common vocabulary. such as Www,homepage,net,web and so on.
2. Do not use adjectives, adverbs. such as the best, the biggest and so on.
3. Do not use a general vocabulary, to be as accurate as possible. For example, instead of "Motorola phone", switch to "V998" and so on

One technique for finding the right keywords is: Go to Lycos,alta,infoseek and other search engines, and search is similar to your content
Website to view the meta keywords of the top ten sites, copy down and use them on your site.

Here, we give a section of Microsoft Multimedia website keywords for your reference:
<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 (ie, keywords) can be
http://www.searchterms.com/
http://eyescream.com/yahootop200.html
Two web sites, there is a monthly list of the most popular search words on the internet.


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.