About the use of <meta> tags in HTML.

Source: Internet
Author: User

The <meta> element provides meta-information about the page.

Property has charset name http-equiv content. The charset is used to specify the page character encoding, often set to Utf-8. Name,http-equiv is a pair of key values, respectively, with content.

1,name commonly used values are: Keywords,description,robots,author and so on.

Keywords is used to set the search engine page of the keyword is what.

Description is used to set the main content of the site.

Robots is used to tell robots those that need to be indexed, which are not needed.

Author label The author of the page.

For example:

 <  meta  name  = "keywords"   content  = "Front end, Web,html,css,javascript"  >  <  meta  name  = "description"   content  = "This is a page about the front end"  >  <  meta  name  = "Robots"   content  = "All"  >//desirable value: All,none,index,noindex,follow,nofollow 

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 not be retrieved and the link on the page can be queried.

<name= "Author"  content= "Chang,[email protected]"> 

2,http-equiv commonly used values are: Expires,pragma,refresh,set-cookie,windows-targe

Expires setting the page expiration period (GMT time format)

pragma prohibits the browser from accessing the page content locally, so that it can only be viewed online,

Set-cookie set the date on which the cookie exists;

Windows-targe force the page to appear in the current window as a separate page, you can prevent your page from being called by others as a frame page

<Metahttp-equiv= "Refresh"contect= "N;url=http://yourlink">timed to let the page within the specified time n, jump to the page http://yourlink;<Metahttp-equiv= "Expires"contect= "mon,12 May 2001 00:20:00 GMT"><Metahttp-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;<Metahttp-equiv= "Set-cookie"contect= "mon,12 May 2001 00:20:00 GMT"><Metahttp-equiv= "Windows-target"contect= "_top">   

About the use of <meta> tags in HTML.

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.