There are always a lot of friends asking me about the role, functions, and usage of many Mata tags. In fact, you search online, there are a lot of places can provide detailed explanations, only to show that you are too lazy.
Today, I take some time to Mata all the tags summed up as follows: I hope you don't always ask, this thing is not found.
Since it is to engage in SEO, the elements of these pages must also be to understand some, but there is no need to familiarize you with the use of each of the tags, but at least when the use of the time can be. We seoer know keywords, description, robots of these 3, do not waste time researching author, http-equiv and so on, put these time on the analysis of the site framework and optimization details up!
Xiaofeng here just want to explain the Mata tag, then we get to the point:
What is a meta tag?
Meta is an auxiliary label for the HTML language Head area. Its functions still have a certain effect, a little more careful friends will see almost all of the Web page, are similar to the following paragraph of HTML code:
Many people think that these tags are useless, but the birth of search engines is to prove their existence necessary. Using META tags will give you unexpected results, such as adding keywords will automatically be collected by large search sites automatically, you can set page format and refresh, and so on. In particular, describe the contents of a website to be in Google to take a good ranking are very important role.
Ii. Composition of META tags
Meta tags are made up of the Http-equiv attribute and the name attribute, and the properties of the Web page are different by different parameters.
1, the Name property (the role of SEO is relatively large)
The name attribute is mainly used to describe the Web page, and the corresponding attribute value of Content,content is mainly convenient for search engine robot to find information and classify information.
The name attribute syntax format for the META tag is:.
The Name property has the following main parameters:
A, Keywords (keywords)
Description: Keywords is used to tell search engines what the keywords are on your page.
Examples of this blog:
B, description (Website content description)
Description: Description used to tell the search engine your site's main content.
Examples of this blog:
C, Robots (Robot Guide)
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:
D, author (author)
Description: The author of the callout page
Example:
2, HTTP-EQUIV properties (some protection site measures)
Http-equiv as the name implies, the equivalent of HTTP file header, it can send back some useful information to the browser to help correct and accurate display of Web page content, and the corresponding property value of the content,content is actually the variable value of each parameter.
The HTTP-EQUIV attribute syntax format for meat tags is:; the HTTP-EQUIV attribute has the following parameters:
A, Expires (term)
Description: Can be used to set the expiration time of a Web page. Once the page expires, it must be retransmitted to the server.
Usage:
Note: The time format for GMT must be used.
B, Pragma (cache mode)
Description: Prevents browsers from accessing page content from the local computer's cache.
Usage:
Note: This setting makes it impossible for visitors to browse offline.
C, refresh (refreshing)
Description: Automatically refreshes and points to the new page.
Usage:
Note: 2 of which is to stop for 2 seconds and automatically refresh to the URL.
D, Set-cookie (Cookie set)
Note: If the page expires, the saved cookie will be deleted.
Usage:
Note: The time format for GMT must be used.
E, Window-target (display window settings)
Description: Forces the page to appear as a separate page in the current window.
Usage:
Note: Used to prevent others from calling their own pages in the frame.
F, Content-type (display character set settings)
Description: Set the character set used by the page.
Usage:
Functions of META tags
We've covered some of the basics of the META tags, and then we'll take a look at the common features of the META Tags: