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.