The role of JSP tags <meta>

Source: Internet
Author: User

META Tags:

The META tag has two properties, each of which is the Http-equiv property and the Name property.

Name property:
<meta name= "Generator" contect= "" > To illustrate the Build tool (such as Microsoft FrontPage 4.0);
<meta name= "KEYWords" contect= "" > to the search engine to explain the keywords of your page;
<meta name= "DEscription" contect= "" > Tell the Search engine the main content of your site;
<meta name= "Author" contect= "Your Name" > tell the Search engine the author of your site's production;
<meta name= "Robots" contect= "All|none|index|noindex|follow|nofollow" >
The properties are described as follows:
Set to all: The file will be retrieved and the link on the page can be queried;
Set to None: The file will not be retrieved, and the link on the page cannot be queried;
Set to index: The file will be retrieved;
Set to follow: links on the page can be queried;
Set to NOINDEX: The file will not be retrieved, but the link on the page can be queried;
Set to Nofollow: The file will be retrieved and the link on the page cannot be queried.


HTTP-EQUIV Properties:

<meta http-equiv= "Content-type" contect= "text/html"; charset=gb_2312-80 ">
<meta http-equiv= "Content-language" contect= "ZH-CN" >
To describe the text and language used in the production of the homepage;

<meta http-equiv= "Refresh" contect= "N;url=http://yourlink" >
Timed to let the page within the specified time n, jump to the page http://yourlink;

<meta http-equiv= "Expires" contect= "mon,12 May 2001 00:20:00 GMT" >
Can be used to set the expiration time of a webpage and must be recalled to the server once it expires. It is important to note that the GMT time format must be used;

<meta http-equiv= "Pragma" contect= "No-cache" >
is used to set the browser from the local computer cache to access the content of the page, after the settings once left the page can not be recalled from the cache;

<meta http-equiv= "Set-cookie" contect= "mon,12 May 2001 00:20:00 GMT" >
Cookie is set and if the page expires, the cookie will be deleted. It is also important to note that GMT time format must be used;

<meta http-equiv= "Pics-label" contect= "" >
Page rating, there is a content setting in Internet Options for IE that prevents you from browsing some restricted sites,
The limit level of the website is set by the meta attribute;

<meta http-equiv= "Windows-target" contect= "_top" >
Forcing the page to appear in the current window as a separate page prevents your page from being called by others as a frame page;

<meta http-equiv= "Page-enter" contect= "Revealtrans (duration=10,transtion=)" >
<meta http-equiv= "Page-exit" contect= "Revealtrans (duration=20,transtion=6)" >
Sets the special effect when entering and leaving the page, which is the "Format/page transition" in FrontPage, but the added page cannot be a frame page.

<meta name= "viewport" content= "width=device-width,initial-scale=1.0" > Content property values: Width: Widths of viewable areas, Values can be numbers or keywords device-width height: same width Intial-scale: The first time the page is displayed is the zoom level of the viewable area, the value of 1.0 is displayed by the actual size, without any zoom maximum-scale=1.0, MI     nimum-scale=1.0, the zoom level of the viewable area, maximum-scale the user can enlarge the page of the program, 1.0 will prohibit the user to enlarge to the actual size above. User-scalable: Whether the page can be scaled, no disables scaling

The role of JSP tags <meta>

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.