The role of "<meta name=" "content=" > "

Source: Internet
Author: User

First, the syntax:
<meta name= "Name" content= "string"/>


Second, parameter analysis:
1. Name: 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 item, 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
A, 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 mesh, we can write:
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
B, let some search engines search your page, the code can write:
<meta name= "keywords" content= "Web keyword"/>
<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:
(1) Define META tags and define the first 200 characters of the body of the first page 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.
(2) 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= "...,....,..."/>
(3) 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
(4) The home page is best not frame structure, because frame divides the screen into multiple windows, the navigation table cannot intelligently select the correct window in the home page to index.
C, 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://hi.baidu.com/tesalo/"/>
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 "/>
D, let the page refresh every once in a while, to refresh 10 seconds, the code writes:
<meta http-equiv= "Refresh" content= "ten" >
E, through meta allows you to 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 is the value range of 0-23, the meaning is as follows:
0 Rectangle Reduced 1 Rectangle enlarged 2 round reduced
3 Circle enlarged 4 down to top

The role of "<meta name=" "content=" > "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.