HTML META tags are used

Source: Internet
Author: User
Tags html comment

HTML Language Standard NOTES: Meta tags are very important to the development of the website, it can be used to identify the author, format the page, annotate the content feed and keywords, and refresh the page and so on.  

Google announced in 2009 that it would no longer use meta keywords or descriptions to rank (Ranking) in search algorithms.

A person in the search results before clicking on your link will see the page description, this also shows that should be added to the meta description, convenient for users to read rather than to facilitate the network robot to find . Overall, although a good meta description does not add to the site rankings, it will increase the click-through rate in search results.

Google has said that it is unlikely that algorithmic rules will change in the future, so don't meta expect any keyword tags.

In fact, the Baidu Chinese search engine algorithm is to consider the keyword tag as an important factor in the algorithm . So if you want the important part of traffic to come from a Chinese user, then you should add a keyword meta tag--but be careful not to use unnecessary and unethical keywords.

meta tags do not solve all of your SEO and accessibility issues , but they do play an important role in these areas. If you own a website, you can monitor the performance of your website by registering Google's website management tool . Once registered, if there are any related crawl errors, you will be notified, including some incorrect use of meta tags

Meta is the response header message used to simulate an HTTP protocol in an HTML document. Meta tags are used in There are two types of meta attributes: Name and Http-equiv http-equiv is similar to the HTTP header protocol, which responds to the browser with some useful information to help correct 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 re-accessed on the server.

Usage: <meta http-equiv= "Expires" Content= "Wed, 1997 08:21:57 GMT" >

Note: The time format of GMT must be used.

2.Pragma (cach mode)

Description: Prevents the browser from accessing the contents of the page from the local machine'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: It is necessary to make the webpage automatically link to other Web pages at regular intervals.

Usage: <meta http-equiv= "Refresh" content= "5; Url=http://jb51.net ">

Note: 5 of these are meant to be automatically refreshed to URL URLs after 5 seconds of stay. You can not fill in the value of the URL, indicating that the current page is refreshed.

4.set-cookie (Cookie setting)

Note: If the page expires, the 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 of GMT must be used.

5.window-target (display window settings)

Description: Forces the page to appear on a separate page in the current window.

Usage: <meta http-equiv= "Window-target" content= "_top" >

Note: Use to prevent others from calling your page in the frame.


6.content-type (Displays the settings of the character set)

Description: Sets the character set used by the page. (we have described its role in the previous font design.)

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

7, <meta charset= "UTF-8" > charset property is the encoding format used to specify the content of the page an HTML page can only be set one charset . For most pages, you should set the UTF-8 character encoding

metaTags have been used for years, but there are some classic practices that are not applicable today and should be discarded . obsolete usage:

<meta http-equiv= "Content-type" contect= "text/html"; charset=gb_2312-80 "> and <meta http-equiv= "Content-language" contect= "ZH-CN" >

To illustrate the text and language used in the production of the homepage , as well as the iso-8859-1 character set in English, as well as the BIG5, Utf-8, Shift-jis, Euc, Koi8-2 and other character sets;

The 8 meta label can also be used as a copyright note .

<!-- 过时的用法! --><meta name="copyright" content="SitePoint" />

A link tag should be provided to point to a copyright page (or anchor on the same page).<link rel="copyright" href="copyright.html" />

9 <meta http-equiv= "Pics-label" contect= "" > Page Rating
There is a content setting in Internet Options for IE that prevents you from browsing some restricted websites, and the limit level for websites is set by the meta attribute;

ten <meta http-equiv= "Page-enter" contect= "Revealtrans (duration=10,transtion=)" > and <meta http-equiv= " Page-exit "contect=" Revealtrans (duration=20,transtion=6) > Set special effects when entering and leaving the page ,

This feature is the "Format/page transition" in FrontPage, but the added page cannot be a frame page.

The Meat labelName VariableThe 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 keywords are on your page.

Example: <meta NAME = "keywords" content= "life, Universe, mankind, plants,

Relationships, the meaning of Life, science ">

2.description (Introduction)

Description: Description is used to tell search engines 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)

Description: Robots is used to tell the search robot which pages need to be indexed and which pages do not.

The content parameters 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= "Ninedns,[email protected]" >

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

Why is it? The reason is very simple, these two statements can let the search engine can find you accurately, attract more people to visit your site! According to the working principle of popular search engine (Lycos,altavista, etc.), the search engine first sends out the robot to search the WWW automatically, when discovers the new website, Search the page for keywords and decription, add it to your database, and then sort the site by the density of the keywords.

Other words:

1. If your page does not have keywords and description meta tags at all, then the robot will not be able 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 density of keywords is not high, is ranked in dozens of or even millions of sites after the possibility of being clicked is also very small.

So, we have to remember to add keywords and description meta tags, and write the keywords and profiles as much as possible.

The taboo to write keywords is:

1. Do not use common vocabulary. such as Www,homepage,net,web and so on.

2. Don't use adjectives, adverbs. such as the best, the biggest and so on.

3. Do not use general vocabulary, to be as accurate as possible. For example, instead of "Motorola mobile", use "V998", etc.

One of the tips for finding the right keywords: search engines such as Lycos,alta,infoseek, searching for sites that resemble your content, and reviewing the meta-keywords of the top ten sites to copy down to your site.

Here, we cite a Microsoft Multimedia website keyword 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 ">

In addition, there are some "devious" to improve the search Ctr:

1. In order to increase the density of keywords, the keywords are hidden in the page (the text color is defined as the background color).

2. Add keywords to the ALT comment statement in the image.

such as:

3. Add a large number of keywords to the page code using the HTML comment statement.

Usage: <!---INSERT keyword here--->

HTML META tags are used

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.