Detailed description of the meat label

Source: Internet
Author: User
Tags 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 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. How many parameters does the META tag have, and why should we pay special attention to 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 so on.

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 correctly and accurately 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
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 website!

According to the current popular search engine (Lycos,altavista, etc.) the working principle, the search engine first sends the robot to search on the WWW automatically, when discovers the new website, then retrieves the keywords and the decription in the page, and joins it to own database, Then sort the site according to the density of the keywords.

Other words:
1. If your page does not have keywords and description meta tags, then the robot is unable to 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 site is the possibility of being clicked is 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 to search engines like Lycos,alta,infoseek, search for sites that are similar to yours, see the Meta keywords for the top ten sites, and copy them to 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.

In addition, to improve search rate, there are some "devious":
1. In order to increase the density of keywords, 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.
such as:
3. Use HTML annotation statements to add a large number of keywords to the page code.
Usage: <!---Insert the keyword--->

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.