Getting Started Front html 5 platform rental Australia fortunate to build a wide variety of meta head

In the process of writing the web page, the first step is to create a html document. The following are the easiest html5 document.

Fortunately, Australia 5 platform rental building q-1152880099

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>

</ body>
</ HTML>
which is a very important part of the meta tag, which have different functions depending on the content. Of course, these things Baidu can be found.

The above is the first meta specifies the character encoding of the document.

meta elements can provide meta information about the page, such as for search engines and the frequency of updating the description and keywords. It will not be displayed on the page, but the computer can recognize.

There is a meta property must be content meta information associated with the name or http-equiv attribute definition.

There are three optional attribute http-equiv, name, scheme.

The name attribute is mainly used to describe the page.

1, define document keywords for search engines.

<Meta name = "keywords" Content = "HTML, CSS, XML, XHTML, JavaScript">
2, a web page description.

<meta name="description" content="Free Web tutorials on HTML and CSS">
3、定义作者。

<Meta name = "author" Content = "San zhang">
4, the provisions of a package for generating documents (not for handwritten page)

<Meta name = "Generator" Content = "the FrontPage 4.0">
. 5, the web application name specified page represents.

<meta name = "application-name " content = " blog Park">
6 for marking of the copyright information.

<Meta name = "Copyright" Content = "Guo">
7, renderer is prepared for the dual-core browser, dual-core is used to specify the manner in which the default browser to render the page.

<meta name = "renderer" content = "webkit"> // Default webkit core
<meta name = "renderer" content = "ie-comp"> // Default IE compatibility mode
<meta name = "renderer" content = "ie -stand "> // default IE standard mode
8, the search engine crawlers revisit time. If the page is not updated frequently, in order to reduce the pressure on the search engine crawlers to bring the server, you can set the time to revisit a crawler. If the revisit time is too short, the crawler will they define the default time to visit.

<Meta name = "Revisit-After" Content = ". 7 Days">
HTTP-equiv attribute name / value pairs provided for the name. And instructs the server to contain the name of the document in the MIME header to be sent to the browser before sending the actual document / value pairs.

1, refresh the page every 30 seconds.

<Meta HTTP-equiv = "Refresh" Content = "30">
2, the X-UA-Compatible-tell the browser how to render the page version.

<meta http-equiv = "X -UA-Compatible" content = "IE = edge, chrome = 1" /> // specify IE and Chrome use the latest version render the current page
3, specify the request and response caching mechanism to follow.

<Meta-equiv = HTTP "Cache-Control" Content = "NO-Cache">
Content five cases:

① no-cache: first send a request to confirm whether the resource is changed with the server, if not changed, then use the cache.
② no-store: do not allow caching, each time to go on the server, download the complete response. for safety.
③ public: cache all the responses, but not necessarily. Because the max-age can do the same effect.
④ private: cache for a single user only, and therefore does not allow any repeater cache.
⑤ max-age: indicates the current start request, the response could be in the long cached and reused, without having to request the server. For example: max-age = 60 represents the response can be cached and reused again for 60 seconds.

4, for inhibiting the current page when browsing the mobile terminal, transcoding is Baidu. While Baidu's intention is good, but transcoding many times but to no avail. Can be added to the example sentence in the head, it is possible to avoid the Baidu transcoding.

<meta http-equiv="Cache-Control" content="no-siteapp" />

Guess you like

Origin www.cnblogs.com/kaishiba/p/11095855.html