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.
The tag provides meta-information about the page, such as description and keywords for search engines and update frequency. The tag is located at the head of the document and contains no content. The properties of the 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">
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 or |