Role of meta tags in Web pages

Source: Internet
Author: User
Tags html code example microsoft frontpage
<META> is a tag, function, and change pair between <HEAD> and </HEAD>, so I will introduce it in a formula.

<Meta name = "Description" content = "This is Chris's Home Page">
The description of the webpage, which acts on the login of the search engine.

<Meta name = "Keywords" content = "Chris, Web, Music, photo">
The keyword of this web page is used to log on to the search engine.

<Meta http-equiv = "Expires" content = "Tue, 09 Dec 1997 00:00:00 GMT">
<Meta http-equiv = "Pragma" content = "no-cache">
The above lines have the same functions, and both require the browser to reload the page. Do not use the cache function. Of course, you can modify the Expire (expiration) time.

<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Meta http-equiv = "Content-Type" content = "text/html; charset = iso-8859-1">
Set this is the HTML file and Its Encoding language, simplified Chinese Web page with charset = gb2312, traditional Chinese use charset = big5, or do not have encoding can also be, pure English web page is recommended to use iso-8859-1.

<Meta name = "GENERATOR" content = "Mozilla/4.04 [en] (Win95; I) [Netscape]">
<Meta name = "GENERATOR" content = "Microsoft FrontPage 3.0">
This only indicates the editor that writes the webpage.

<Meta http-equiv = "refresh" content = "10; url = http://www.hkiwc.com/">
This line is more practical and can be automatically transferred to the specified URL within the specified number of seconds. 10 In the original code indicates 10 seconds.

Meta is used to simulate HTTP Response Header packets in HTML documents. Meta Tags are used in

 

Name attribute

1. <meta name = "Generator" contect = ""> describes generation tools (such as Microsoft FrontPage 4.0;

2. <meta name = "KEYWords" contect = ""> describe KEYWords Of Your webpage to search engines;

3. <meta name = "DEscription" contect = ""> tell the search engine the main content of your site;

4. <meta name = "Author" contect = "Your name"> tell the search engine the creator of your site;

5. <meta name = "Robots" contect = "all | none | index | noindex | follow | nofollow">

The attributes are described as follows:

Set to all: the file will be retrieved, and the link on the page can be queried;

Set to none: files will not be retrieved, and links on the page cannot be queried;

Set to index: the file will be retrieved;

Set to follow: links on the page can be queried;

Set to noindex: the file will not be retrieved, but the link on the page can be queried;

Set to nofollow: files will not be retrieved, and links on the page can be queried.

Http-equiv attributes

1. <meta http-equiv = "Content-Type" contect = "text/html"; charset = gb_2312-80 ">

And <meta http-equiv = "Content-Language" contect = "zh-CN"> to describe the text and Language used by the homepage;

Also such as English is the ISO-8859-1 character set, there are BIG5, UTF-8, shift-Jis, Euc, Koi8-2 and other character sets;

2. <meta http-equiv = "Refresh" contect = "n; url = http: // yourlink"> regularly redirect a webpage to http within the specified time; // yourlink;

3. <meta http-equiv = "Expires" contect = "Mon, 12 May 2001 00:20:00 GMT"> you can set the expiration time of a webpage, once it expires, it must be called again on the server. Note that the GMT time format must be used;

4. <meta http-equiv = "Pragma" contect = "no-cache"> is used to disable the browser from accessing the page content from the cache of the local machine, once the page is set, it cannot be called out from the Cache;

5. <meta http-equiv = "set-cookie" contect = "Mon, 12 May 2001 00:20:00 GMT"> cookie setting: If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;

6. <meta http-equiv = "Pics-label" contect = ""> webpage rating: There is a content setting in internet Options of IE, it can prevent browsing of some restricted websites, and the website's restricted level is set through the meta attribute;

7. <meta http-equiv = "windows-Target" contect = "_ top"> force the page to be displayed on an independent page in the current window, it can prevent your webpage from being called as a frame page by others;

8. <meta http-equiv = "Page-Enter" contect = "revealTrans (duration = 10, transtion = 50)"> and <meta http-equiv = "Page-Exit"

Contect = "revealTrans (duration = 20, transtion = 6)"> set the special effect for entering and leaving the page. This function is the "format/Webpage transition" in FrontPage ", however, the added page cannot be a frame page.

META Tags are used to describe the attributes of an HTML webpage document, such as the author, date and time, webpage description, keywords, and page refresh.

In online marketing methods such as search engine registration and search engine optimization ranking, we usually talk about the role of META tags. We can even say that, the content design of META tags is a crucial factor for search engine marketing, especially the "description" and "Keywords" Keywords) these two attributes are even more important. For more information, see description Keywords ]. Although the current search engine determines the ranking of search results seldom depends on the content in the META tag, the content design of the META tag is still very important.

From the HTML code example, we can see that there are three places in the code that contain meta, and meta does not exist independently, but needs to be connected to other attributes later, such as description, Keywords, and http-equiv. The following describes the composition and functions of META tags that are common in search engine marketing.

META Tags can be divided into two major parts: HTTP-EQUIV and NAME variables.

1. About HTTP-EQUIV in META tag

One of the HTML code examples is:

<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">

It is used to specify the characters used in the current document as gb2312, that is, simplified Chinese characters. Based on this line of code, the browser can identify that the webpage should be displayed with simplified Chinese characters. Similarly, if we replace "gb2312" with "big5", it is a well-known traditional Chinese character.

The HTTP-EQUIV is used to provide some instructions to the browser so that they can be made accordingly. HTTP-EQUIV is not only a description of the character encoding of the web page, the commonly used HTTP-EQUIV type also includes: webpage expiration time, default script language, default style page language, and automatic page refresh time.

2. About "description" in the META tag"

The code in "description" in an HTML code instance is:

<Meta name = "description" content = "network marketing teaching website provides" network marketing basics and Practices "teaching support: network marketing courseware, network marketing papers, network marketing lab teaching, e-commerce papers, online marketing and e-commerce books ">

Content = "webpage description" in "description" is an overview of a webpage, which may appear in the search results. Therefore, you need to design it based on the actual situation of the webpage, avoid "descriptions" that are irrelevant to the webpage content whenever possible. In addition, it is best to have a corresponding description for each webpage (at least the webpage of the same topic has a corresponding description ), instead of using the same description content for the entire website, because a website has multiple webpages, the content of each webpage must be different. If the same description is used, obviously, some webpage content is not directly related. This will not only make the search engine rank the webpage, but also help the user determine whether to click to enter the website to obtain further information based on the information in the search results.

3. About "Keywords" in the META tag"

Similar to "description" in the META tag, "Keywords" is used to describe the attributes of a webpage, except that the content to be listed is "Keywords" rather than the introduction of webpages. This means that you need to select appropriate keywords Based on the subject and content of the webpage. When selecting keywords, in addition to being related to the core content of the web page, it should also be easy for users to search through search engines. keywords that are more unfamiliar with words are not suitable for META tags. For the design of keywords in META Tags, do not pile up too many keywords. listing a large number of keywords does not make much sense for search engine search, for some popular fields (that is, a large number of similar websites), it may even play a side effect.

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.