<meta name=name content=string/>
2. Parameter analysis:a. Name item: Commonly used options include keywords, description (website content description), author (author), robots (robot wizard), etc.
b. http-equiv item: can be used instead of name item. Common options include Expires (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: Decide what kind of string to fill in this item based on the definition of the name item or the http-equiv item.
III. Applicationa. Tell the browser the file type and language type recognized by the web page. For example, if we want the browser to recognize the simplified Chinese webpage of HTML type, we can write this:
<meta http-equiv=Content-Type content=text/html; charset=gb2312 />
b. Let some search engines search your web page, and the code can be written like this:
<meta name=keywords content=web keywords/
<meta name=description content=web page description text/
To achieve automatic search engines that can truly search your web pages easily, you must pay attention to the following points:
1. You must define both the meta tag items and define the first 200 characters of the homepage text as text that reflects the theme of the homepage. Because some navigation stations also need to index the keywords in the meta item, while also indexing the first 200 characters in the text. Such as: altavista. Therefore, when some people check the registration results after registering the navigation station, they find that the description of navigation station is not what you want, but text such as copyright statements. The reason for this phenomenon is that this is not noticed.
2. Place the meta tag item that defines the keyword before the meta item that defines the description. like:
<meta type=keywords content=.........,...,.../>
<meta type=description content=...,......,.../>
3. Put the most important keywords first and let the relevant keywords be adjacent. All lowercase and first letter capital coexist because some navigation stations are sensitive to the uppercase and uppercase character case when indexing. Do not exceed 250 words in punctuation marks
4. It is best not to use the frame structure for the home page, because after the frame divides the screen into multiple windows, the navigation station cannot intelligently select the home page in the correct window to de-reference.
c. Let a page spend a certain amount of time and automatically go to another page or site, such as:
<meta http-equiv=refresh content=6; url=http://hi.baidu.com/tesalo/ />
6 in the content represents time, the 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 web page, you can directly write the file name, such as:
<meta http-equiv=refresh content=6; url=page1.htm />
d. Let the web page refresh every once in a while. If you want to refresh it every 10 seconds, write the code like this:
<meta http-equiv=refresh content=10>
e. Meta allows you to produce some special effects when entering the page. The specific application is as follows:
<meta http-equiv=Page-Enter content= revealTrans(Duration=5.0,Transition=n) /> Where, the value range of n is 0-23, and the specific meaning is as follows:
0 Rectangle shrink 1 Rectangle expand 2 Round shrink
3 Circular enlargement 4 Down to top