Home  >  Article  >  Web Front-end  >  Introduction to HTML page Meta(2)

Introduction to HTML page Meta(2)

巴扎黑
巴扎黑Original
2017-04-05 09:57:381420browse

★NAME variable

The name describes the web page and corresponds to the Content (web page content), so that search engine robots can find and classify it (at present, almost all search engines use online robots to automatically find meta values ​​to classify web pages).

The value of name (name="") specifies the type of information provided. Some values ​​are already defined. For example, description, keyword, refresh, etc. You can also specify other arbitrary values, such as: creationdate (creation date),

document ID (document number) and level (level), etc.

The content of name specifies the actual content. For example: If you specify level as value, the Content may be beginner, intermediate, or advanced.

1、Keywords

Description: Keyword list provided for search engines

Usage:

Note: Each keyword is separated by an English comma ",". The usual use of META is to specify keywords that search engines use to improve search quality. When several META elements provide document language dependency information, search engines use the lang attribute to filter and display search results by the user's language preference. For example:

2. Description

Description: Description is used to tell search engines the main content of your website.

Usage:

Notice:

3. Robots (robot guide)

Description: Robots are used to tell search robots which pages need to be indexed and which pages do not need to be indexed. The parameters of Content include all, none, index, noindex, follow, and nofollow. The default is all.

Usage:

Note: Many search engines use robot/spider searches to log in to websites. These robots/spiders use some characteristics of meta elements to determine how to log in.

all: Files will be retrieved and links on the page can be queried;

none: The file will not be retrieved, and the links on the page cannot be queried; (same effect as "noindex, no follow")

index: The file will be retrieved; (let robot/spider log in)

follow: Links on the page can be queried;

noindex: The file will not be retrieved, but the links on the page can be queried; (do not allow robot/spider to log in)

nofollow: The file will not be retrieved, but links on the page can be queried. (Do not allow robots/spiders to follow the links on this page to search)

4. Author (Author)

Description: Mark the author or production team of the webpage

Usage:

Note: Content can be: you or your production team’s name, or Email

5、Copyright

Note: Mark copyright

Usage:

Notice:

6. Generator (Editor)

Description: Description of the editor

Usage:

Note: Content="your editor"

7、revisit-after

illustrate:

Usage:

Notice:

★Some other uses in Head

1、scheme
Description: scheme can be used when name is used to specify how the value of content should be interpreted.

Usage:

Notice:

2、Link

Description: Link to file

Usage:

Note: For many websites, if you save it in your inbox, you will find that it is accompanied by a small icon. If you click to enter it again, you will also find that there is also a small icon in the address bar. Now you can easily achieve this function by just adding this paragraph to the header of your page. is used to link the current document to other URLs, but there will be no link button. It is used between tags. The format is as follows:

3. Base (base link)

Description: Insert web page base link attribute

Usage:

Note: All relative paths on your web pages will be preceded by "http://www.admin10000.com/" when linking. Among them, target="_blank" is to open the link file in a new window, and you can make other settings. Change "_blank" to "_parent" to mean that the linked file will be opened in the parent window of the current window; change to "_self" to open the linked file in the current window (frame); change to "_top" to display the linked file in full screen.

The above are some basic usages of META tags, the most important of which are: Keywords and Description settings. why? The reason is very simple. These two statements can allow search engines to accurately discover you and attract more people to visit your site! According to the working principle of popular search engines (Google, Lycos, AltaVista, etc.), search engines first send robots Automatically search on the WWW. When a new website is discovered, it is easy to retrieve the Keywords and Description in the page, add it to its own database, and then sort the websites according to the density of the keywords.

From this point of view, we must remember to add the META tags of Keywords and Description, and write as good a keyword and introduction as possible. otherwise,
The consequences will be:

●If there are no META tags of Keywords and Description in your page, then robots will not be able to add your site to the database, and it will be impossible for netizens to search for your site.

●If your keywords are not well chosen and the keyword density is not high, the possibility of being ranked behind dozens or even millions of sites and being clicked is also very small.

When writing Keywords (keywords), you should pay attention to the following points:

●Don’t use common words. For example www, homepage, net, web, etc.

● Don’t use adjectives or adverbs. For example best, biggest etc.

●Don’t use general terms, be as precise as possible. For example, for "Ericsson Mobile Phone", it would be better to use "T28SC" instead.

"On a trip of three, there must be a teacher." The trick to find suitable keywords is: go to famous search engines such as Google, Lycos, Alta, etc., and search with
For websites with similar content to yours, check the META keywords of the top ten websites and use them on your website. The effect can be imagined.

★Tips

In order to increase the search click-through rate, there are some "shortcuts" that can help you. Of course, you must also know the methods. If you blindly look for "shortcuts", you may end up playing with fire. Remember~

●In order to increase the density of keywords, hide the keywords in the page (define the text color to be the same as the background color). (* Not recommended)

● Add keywords to the ALT comment statement of the image. For example: Keywords

● Use HTML comment statements to add a large number of keywords to the page code. Usage:

The above is the detailed content of Introduction to HTML page Meta(2). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn