A detailed introduction to the role of meta name = content =

Time:2020-10-19

1、 Grammar:
<meta name=”name” content=”string”/>

2、 Parameter analysis:
a. Name: the commonly used options are keywords, description, author, robots, etc.
b. HTTP equiv item: can be used to replace the name item. Common options include expiration (period), pragma (cache mode), refresh (refresh), set cookie (cookie setting), window target (setting of display window), content type (setting of display character set), etc.
c. Content item: determines what string to fill in according to the definition of name or HTTP equiv.

3、 Application
a. Let the browser know the file type and language type recognized by the web page. For example, if we want the browser to recognize the simplified Chinese web surface of HTM / HTML type, we can write as follows:
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
b. Let some search engines search your web page. The code can be written as follows:
< meta name = “Keywords” content = “web keywords” / >
< meta name = “description” content = “webpage description text” / >
In order to achieve the automatic search engine can really and conveniently search your web page, we should pay attention to the following points:
1. The first 200 characters of the main body of the first page should be defined as the text reflecting the theme of the home page. Because some navigation stations are indexing the keywords in the meta item, but also indexing the first 200 characters in the text. For example: Altavista. Therefore, some people check the registration results after registering the navigation station and find that the description in the navigation station is not what you want, but words such as copyright description. The reason for this phenomenon is that it has not been noticed.
2. Place the meta tag item that defines the keyword before the meta item that defines the description. For example:
<meta type=”keywords” content=”…….,…,…”/>
<meta type=”description” content=”…,….,…”/>
3. Put the most important key words at the top and make the related keywords adjacent. All lowercase and uppercase coexist because some navigation stations are sensitive to the case of characters in indexing. Include no more than 250 words in punctuation
4. It is better not to use the frame structure for the home page, because after the frame divides the screen into multiple windows, the navigation station can not intelligently select the home page in the correct window for indexing.
c. Let a page go to another page or site automatically after a certain time, such as:
<meta http-equiv=”refresh” content=”6; url=http://hi.baidu.com/tesalo/” />
6 in content means time, unit is seconds, and url = is followed by the URL you want to turn to. If it is in the same directory as your current webpage, you can directly write the file name, such as:
<meta http-equiv=”refresh” content=”6; url=page1.htm” />
d. Let the web page refresh once every period of time. To refresh every 10 seconds, the code is as follows:
<meta http-equiv=”refresh” content=”10″>
e. Through meta, you can have some special effects when you enter the page. The specific applications are as follows:
< meta http equiv = “page enter” content = “revealtrans (duration = 5.0, transition = n)” / > where the value range of n is 0-23, the specific meaning is as follows:
0 rectangle shrink 1 rectangle enlarge 2 circle reduce
3 round, 4 down to top