Home >Web Front-end >HTML Tutorial >What is the use of html meta tag? Relevant usage of meta tag attributes in html

What is the use of html meta tag? Relevant usage of meta tag attributes in html

不言
不言Original
2018-08-20 14:03:092162browse

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.

e8e496c15ba93d81f6ea4fe5f55a2244Introduction

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.

Related attributes

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 the

name/value pair. And instructs the server to send the MIME document header to the browser containing name/value pairs before sending the actual document.

http-euqiv="content"MeaningExample content="value"content-typeContent typetext/html, text/css...default-stylePredefined stylesUnder the same document, the title value in 2cdf5bf648cf2f33323966d7f58a7f3f or c9ccee2e6ea535a969eb3f532ad9fe89reflashRegular refresh or redirection is not controllable by the user, use with cautionPositive integer valueX-UA-CompatibleSpecial to IE8, tell the browser which IE version to use to render the web pageIE=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

##e8e496c15ba93d81f6ea4fe5f55a2244 Meta summary of html, introduction to the use of meta attributes in html tags_html/css_WEB-ITnose

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn