Meta-tag of HTML learning Diary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.