Goto: meta name meaning: <meta http-equiv=content-type content= "text/html; charset=gb2312 ">
What is META? Meta is actually an auxiliary tag in the head area of the HTML language. In almost all of the pages, we can see similar to the following HTML code: <meta http-equiv=content-type content= "text/html; charset=gb2312 ">
Some people say, this code seems dispensable, not much practical effect! It's not useless, but you're not using the META tag well. Why do you say that? This is because the META tag has a number of parameters, using different parameters to enable the home page to implement different functions, such as to identify the author, set the page format, annotate the content feed and keywords, and refresh the page and so on! Let's come together to uncover the mystery of meta tags!
First, the syntax:
<meta name= "Name" content= "string" >
Second, parameter analysis:
1) Name entry: Common options are keywords (keywords), description (Website content description), author (author), Robots (Robot wizard), etc.
2) Http-equiv: Can be used in place of the name entry, the commonly used options are expires (term), Pragma (cache mode), refresh (refresh), Set-cookie (Cookie setting), Window-target ( Display the settings of the window), Content-type (display character set settings) and so on.
3) Content item: Determines what string this item fills according to the definition of the name key or HTTP-EQUIV item.
Third, the application
1, tell the browser page to identify the type of file and language type, for example, we want to let the browser recognize the htm/html type of Simplified Chinese network, we can write:
< Meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
2, let some search engines to search your Web page, the code can write:
< Meta name= "Keywords" content= "Web keywords" >
< Meta name= "description" content= "Web descriptive text" >
To achieve an automated search engine can really easily search your webpage also pay attention to the following points:
A. Define META tags and define the first 200 characters of the first page body as text that reflects the main page theme. Because some navigation stations are indexing the keywords in the meta-item, the first 200 characters in the body are also labeled. such as: AltaVista. So, some people after registering the navigation table to check the registration results, found that the description in the navigator is not what you want, but such as the copyright description and other text. The reason for this phenomenon is that it has not been noticed.
B. Place the meta-tag that defines the keyword before the meta-item that defines the description. Such as:
<meta type= "keywords" content= "...,...,..." >
<meta type= "description" content= "...,....,..." >
C, put the most important keywords in the front, so that the relevant keywords adjacent. All lowercase is associated with the first letter, because some of the navigation tables are sensitive to the case of the characters at the time of indexing. Include no more than 250 words of punctuation
D, the home is best not frame structure, because frame divides the screen into multiple windows, the navigation table can not intelligently select the correct window in the home page to index.
3, let a page over a certain time, automatically go to another page or site to go, such as:
< Meta http-equiv= "Refresh" content= "6; Url=http://fym888.nease.net ">
Content 6 means time, in seconds, url= is the URL you want to turn to, if you are in the same directory as your current page, you can write the file name directly, such as:
< Meta http-equiv= "Refresh" content= "6; Url=page1.htm ">
4, let the page refresh once every time, to 10 seconds to refresh, the code write:
<meta http-equiv= "Refresh" content= "ten" >
5, through Meta can let you enter the page to produce some special effects, the specific application is as follows:
< meta http-equiv= "Page-enter" content= "Revealtrans (duration=5.0,transition=n)" > where n has a value range of 0-23, with the following meanings:
0 Rectangle Reduced 1 Rectangle enlarged 2 round reduced
3 Circle enlarged 4 down to top 5 up to bottom
6 left to right 7 right to left 8 vertical Blinds
9 Horizontal shutter 10 dislocation horizontal shutter 11 dislocation vertical Shutter
12 point 13 to Middle 14 middle to left or right
15 middle to upper and lower 16 up to middle 17 right down to top left
18 top right to bottom left 19 left up to bottom right 20 left down to top right
21 horizontal bar 22 vertical bar 23 or more 24 kinds of randomly selected one
6. Labeling
<meta name= "Author" content= "Huangshan Village-Anhui New Foundation Engineering Co., Ltd." >
7, control the page buffer, such as do not page buffer code to write:
<meta http-equiv= "Cache-control" content= "No-cache" >
There are others, but they are not used.
Category: CSS Tags: meta
Goto: Meaning of meta name