Home >Web Front-end >HTML Tutorial >What is the use of html meta tag? Relevant usage of meta tag attributes in html
The content of this article is about what is the use of meta tags in html? The related usage of meta tag attributes in HTML has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
e8e496c15ba93d81f6ea4fe5f55a2244The tag provides meta-information about the page, such as description and keywords for search engines and update frequency. The e8e496c15ba93d81f6ea4fe5f55a2244 tag is located at the head of the document and contains no content. The properties of the e8e496c15ba93d81f6ea4fe5f55a2244 tag define the name and value pairs associated with the document.
charset
<meta charset="utf-8">
Interpretation: The charset attribute sets the encoding format and is set to utf-8 to avoid Chinese garbled characters
##content
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">Definition: A required attribute of the e8e496c15ba93d81f6ea4fe5f55a2244 tag, relying on http-equive and name name and value pairs , store its content, the value is text
http-equiv
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Interpretation: http-equiv The attribute provides a name for thename/value pair. And instructs the server to send the MIME document header to the browser containing name/value pairs before sending the actual document.
Meaning | Example content="value" | |
---|---|---|
Content type | text/html, text/css... | |
Predefined styles | Under the same document, the title value in 2cdf5bf648cf2f33323966d7f58a7f3f or c9ccee2e6ea535a969eb3f532ad9fe89 | |
Regular refresh or redirection is not controllable by the user, use with caution | Positive integer value | |
Special to IE8, tell the browser which IE version to use to render the web page | IE=edge uses the latest version of IE to render web pages |
name
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="keywords" content="关键字,可从decription中选取"> <meta name="description" content="描述网页的关键信息">Interpretation: The name attribute provides the name of the name/value pair, usually the web page author names a meaningful name himself , easy to read and understand. Related recommendations:
html tag meta tag_html/css_WEB-ITnose
html meta summary, html Introduction to the use of meta attributes in tags
The above is the detailed content of What is the use of html meta tag? Relevant usage of meta tag attributes in html. For more information, please follow other related articles on the PHP Chinese website!