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

不言
Release: 2018-08-20 14:03:09
Original
2144 people have browsed it

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.

Introduction

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.

Related attributes

charset

<meta charset="utf-8">
Copy after login

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">
Copy after login

Definition: A required attribute of the 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">
Copy after login

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 or