Current location - Quotes Website - Signature design - What are the common Meta tags and how to use them?
What are the common Meta tags and how to use them?
A meta tag has two tags (

note:

Name attribute

The most common name attributes are keywords and descriptions. In addition to these two most commonly used properties, the name property has other properties.

1、name="viewport "

Note: On the mobile device browser, you can disable the zoom function by setting the meta property of the viewport to user-scalable =no. After disabling the zoom function, users can only scroll the screen, which can make your website look more like a native application. Note that we don't recommend this method for all websites, it depends on your own situation!

Usage:

2. name= "Description"

Note: This is the description of the webpage, which is aimed at the search engine. Search engines rank according to this description, which is usually a keyword in a web page.

Usage:

3. name= "Keywords"

Description: keywords are used to tell search engines what the keywords of your website are, in other words, the theme of your website. In a sense, keywords and descriptions actually have the same function (highlighting the theme of the website), but they are different (displaying the search results page).

Usage:

4. name= "Author"

Description: Mark the author of the website.

Usage:

5. name= "Copyright"

Note: Mark the copyright information of the website.

Usage:

6. name= "Robot"

Description: Robots are used to tell search robots which pages need indexing and which pages don't. The parameters of the content are all, none, index, noindex, follow and nofollow. The default is all.

Usage:

Http-equiv attribute

Http-equiv is equivalent to the header function of HTTP, which can send back some useful information to the browser to help display the content of the webpage correctly and accurately. The corresponding attribute value is content, and the content in the content is actually the variable value of each parameter.

The syntax format of http-equiv attribute of meta tag is:;

1, refresh

Description: Automatically refresh and go to a new page.

Usage:

Note: where 2 means automatically refreshing to URL after staying for 2 seconds.

2. Content type (setting of display character set)

Description: Sets the character set used by the page.

Usage:

Note: Abbreviated as

3. Window Target (Settings of Display Window)

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

Usage:

Note: It is also a very practical attribute to prevent others from calling their own pages in iframe.

4.Set-Cookie(cookie setting)

Note: If the webpage expires, the saved cookie will be deleted.

Usage:

Note: GMT time format must be used.

5. Miscellaneous notes (cache mode)

Description: Prevents the browser from accessing the page content from the cache of the local computer.

Usage:

Note: With this setting, visitors will not be able to browse offline.

6. Expiration (term)

Description: It can be used to set the expiration time of web pages. Once the webpage expires, it must be retransmitted to the server.

Usage:

Usage:

Note: You must use GMT time format or set it directly to 0 (the number indicates how long it will expire).

As for how to set mate tags to make search engines like them better, which is more conducive to SEO optimization, I personally think that the attributes related to website optimization are mainly keywords and descriptive, and other attributes are basically not helpful to optimization, so the setting of keywords and descriptive is extremely important! The settings of these two properties also vary from website to website, and cannot be generalized. The setting of keywords and descriptions needs comprehensive analysis.