The so-called META tag is used to describe the properties of an HTML Web document, also known as meta-information, which is not displayed in the browser's page, such as author, date and time, page description, page refresh, etc.
Basic syntax:
<meta name = "Content=" ">
<meta http-equiv= "" content = "" >
The Name property and the Content property
The Name property is used to describe the Web page, which is a name in the form of "name/value", and the value of the name attribute is described by the Content property, which facilitates search engine searching and classification. The most important of these are description, keywords and robots.
HTTP-EQUIV Properties and Content properties
The Http-equiv property is used to provide a response header message for the HTTP protocol, which is a name in the form of a "name/value", and the content (value) described by the value of the Http-equiv property is represented by the contents property, which is typically used by devices such as Web page loading premises. One of the most important is Content-type charset provides encoding information, refresh refreshes with jump page, No-cache page cache, expires page cache expiration time.
How to use META tags
<Metaname= "Keyworlds"contend= "Information parameter"/><Metaname= "description"contend= "Information parameter"/><Metahttp-equiv= "Content-type"contend= "text/html;charset= information parameter"/>----can be written in HTML5.<MetaCharSet= "UTF-8"><Metaname= "Author"contend= "Information parameter"/><Metahttp-equiv= "Refresh"contend= "time; url= URL parameters"/>
Example:
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <Metaname= "keywords"content= "Front-end development"> <Metaname= "description"content= "Front-end development"> <Metahttp-equiv= "Refresh"content= "3;url=https://www.baidu.com/"> <title>Preliminary application of front-end development technology</title></Head></HTML>
Meta-tag of HTML learning Diary