Meta tags Detailed JSP page

I believe page we usually develop in the most contact is html and jsp, and may have a Meta tag you will see every day in these pages, but do you really know some other use of this label it? Today to introduce a number of other application examples and explanations of the labels.

META tags in two parts: HTTP header information (HTTP-EQUIV) and page description information (NAME).

★HTTP-EQUIV

HTTP-EQUIV similar to the head of HTTP protocol, it responded to the browser some useful information to help correct and accurate display Web content. HTTP-EQUIV commonly used types are:

1, Content-Type and Content-Language (Display Character Set)

Description: Set pages use the character set, to illustrate the text has been used to make home language, the browser will be based on this call the appropriate character set display page content.

usage:

Note: The META tag defines the character set used by HTML pages for the GB2132, is the national standard Chinese characters code. If one of the "charset = GB2312" replace "BIG5", then the page is used in traditional Chinese character set Big5 code. When you visit the sites of some foreign, IE browser will prompt you to correctly display this page you need to download xx language support. This feature is by reading the Content-Type attribute of the HTML pages META tags and know which character set is required to display the page. If the system is not installed in the appropriate character set, then download IE on the tips. Other languages ​​also correspond to different charset, such as the Japanese character set is "iso-2022-jp", the Korean is "ks_c_5601".

Content-Type of Content can be: text / xml and other document types;

Charset options: ISO-8859-1 (English), BIG5, UTF-8, SHIFT-Jis, Euc, Koi8-2, us-ascii, x-mac-roman, iso-8859-2, x-mac-ce, iso-2022-jp, x-sjis, x-euc-jp, euc-kr, iso-2022-kr, gb2312, gb_2312-80, x-euc-tw, x-cns11643-1, x-cns11643-2 etc. character sets; Content-language is the Content can also: EN, FR and other language code.

2, Refresh (refresh)

Description: Let pages how long (seconds) refresh themselves, or how long to let the page automatically link to other web pages.

usage:

Note: 5 which refers to the auto-refresh URL URL for 5 seconds.

3, Expires (period)

Description: Specifies the pages in the cache expiration time, once the page expired, we must re-access to the server.

usage:


      

Note: You must use the GMT time format, or directly to 0 (numbers indicate after how much time expired).

4, Pragma (cach mode)

Description: Disable browser page content from the cache access to the local machine.

usage:

Note: The page is not stored in the cache, each visit will refresh the page. This setting, visitors will not be able to browse offline.

5, Set-Cookie (cookie settings)

Note: it will exist in the cache, the cache can be read from the next visit again when browser visit a page, in order to improve the speed. When you want visitors each time you refresh the advertising icon, or every time you refresh the counter, it is necessary to disable the cache. HTML files are usually not necessary to disable the cache for ASP and other pages, you can use to disable the cache, because every time I see pages are dynamically generated on the server, the cache will lose its significance. If the page expired, then archiving the cookie will be deleted.

usage:

Note: You must use the time format GMT.

6, Window-target (display setting window)

Description: Forces the page is displayed in a separate page in the current window.

usage:

Note: This attribute is used to prevent someone calls your page in the framework. Content options: _blank, _top, _self, _parent.

7, Pics-label (RSAC rating page)

Description: There is an element of settings, you can prevent some websites restricted in IE's Internet Options, and X-rated websites

With this parameter is not set.

usage:

Note: Do not set the level too high. RSAC's assessment system provides a standard for evaluating Web sites for content. Users can set up Microsoft Internet Explorer (IE3.0 and above) to exclude contain pornographic and violent content of the site. The above example of HTML from Microsoft's home page. Code (n 0 s 0 v 0 l 0) indicates that the site does not contain unhealthy content. Level assessment by the RSAC, namely the US entertainment committee of rating agencies, if you want to learn more about the content rating RSAC rating system, or if you need to evaluate your own website, you can visit RSAC site: http: //www.jb51 .net

8, Page-Enter, Page-Exit (entry and exit)

Description: This is the page is loaded and transferred some of the effects of the time.

usage:

Note: blendTrans is a dynamic filter, generating fade effect. Another RevealTrans Live Filters can also be used to effect entry and exit pages:

< Meta http-equiv=“Page-Enter” Content=“revealTrans(duration=x, transition=y)”>

Duration indicates the duration of filter effects (unit: seconds)

Transition filter types. It indicates what type of effects used a value of 0-23.

Narrow rectangles 0 1 2 enlarged circular narrow rectangular

The enlarged circular 4 3 5 to refresh to the refresh

6 left-to-right and right-to-left refresh refresh 7 8 vertical blinds

9 horizontal louver 10 offset vertical blinds offset horizontal louver 11

Diffusion 12 to the intermediate refresh about 13 to about 14 intermediate refreshing

Intermediate 15 intermediate the upper and lower 16 down to the lower right to the upper left 17

Upper right 18 lower left 19 upper left to lower right to lower left to upper right 20

21 bar above 22 kinds of 22 bars 23 to select a random

9, MSThemeCompatible (XP themes)

Description: whether to close the theme xp in IE

usage:

Note: Close xp blue button system stereoscopic display style, and so win2k much like.

10, IE6 (page generator)

Description: page generator generator, is ie6

usage:

Note: What should we do, similar factory goods manufacturers.

11, Content-Script-Type (related to the script)

Description: This is the type of recent W3C specifications, indicating the page script.

usage:

note:

★ NAME variable

name is a description of a web page corresponding to the Content (Web content), to facilitate the search engine robots, classification (currently almost all search engines use the online robot automatically find meta value to the classified pages).

value argument name (name = "") to specify the type of information provided. Some values ​​are already defined. For example description (description), keyword (keywords), refresh (refresh) and so on. You can also specify any other value, such as: creationdate (creation date),

document ID (Document No.) and level (grade) and so on.

name specifies the actual content of the content. Such as: If the designated level (grade) for the value (value), Content may be beginner (primary), intermediate (middle), advanced (Advanced).

1, Keywords (keywords)

Description: List of keywords for search engines

usage:

Note: among the keywords with a comma "," separated. META usually use the designated search engine is used to improve the quality of search keywords. When several META elements subordinate language document provided information, the search engine will use the lang attribute to filter through the user's language priority reference to display search results. E.g:


      

2, Description (Description)

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

usage:

note:

3, Robots (robot wizard)

Description: Robots used to tell search robots which pages to index, which does not require an index page. Content parameters are all, none, index, noindex, follow, nofollow. The default is all.

usage:

Note: Many search engines are released through the robot / spider search to log sites, these robot / spider meta element is necessary to use some of the features to determine how to log on.

all: the file will be retrieved, and the links on the page can be inquiries;

none: document will not be retrieved, and the links on the page can not be queried; (and "noindex, no follow" from the same role)

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

follow: a link on the page can be inquiries;

noindex: document will not be retrieved, but the links on the page can be inquiries; (let robot / spider log in)

nofollow: document will not be retrieved, links on the page can be inquiries. (Let robot / spider follow the connection down this page to find a probe)

4, Author (Author)

Description: The mark of a web page or production team

usage:

Note: Content can be: the name of you or your production team or Email

5, Copyright (copyright)

Description: Copyright mark

usage:

note:

6, Generator (editor)

Description: Description Editor

usage:

Note: Content = "You are the editor of"

7, revisit-after (revisit)

Description:

usage:

note:

★ Head of the other usage

1, scheme (scheme)

说明:scheme can be used when name is used to specify how the value of content should

be interpreted.

usage:

note:

2, Link (link)

Description: Link to File

usage:

Note: If you put a lot of sites she kept in Write folder, you will find that even with a small icon, if you click to re-enter the address bar will also have found a small icon. Now just in your head plus page these words, you can easily achieve this function. For the current document URL for the link with the other, but there will be connected to buttons used between markers, the following format:

< link href=“URL” rel=“relationship”>

3, Base (Link-yl)

Description: Insert web-based link properties, you can get resources from the link address

usage:

 <Base href="http://www.w3school.com.cn/tiy/t.asp?f=html_base_test"  target="_blank">

Note: This corresponds to the address W3School explain address, do not understand the meaning of this label students can access the address, to understand the significance of this label.

Reprinted from:
https://www.cnblogs.com/Survivalist/p/8901209.html

Released three original articles · won praise 0 · Views 199

Guess you like

Origin blog.csdn.net/qq_39433354/article/details/103975560
Recommended