Meta tag of HTML learning notes

Source: Internet
Author: User

I. Composition of meta tags
Meta tags have two attributes: http-equiv and name. different attributes have different parameter values, which enable different webpage functions.
1. name attribute
The name attribute is mainly used to describe the webpage, and the corresponding attribute value is content. The content in the content is mainly used to facilitate search engine robots to find information and classify information.
The syntax format of the name attribute of the meat tag is <meta name = "parameter" content = "specific parameter value">.
The name attribute has the following parameters:
A. Keywords)
Note: keywords are used to tell the search engine what keywords are on your webpage.
Example: <meta name = "keywords" content = "science, education, culture, politics, ecnomics, relationships, entertaiment, human">
B. description (website content description)
Description: description is used to tell the search engine the main content of your website.
Example: <meta name = "description" content = "This page is about the meaning of science, education, culture.">
C. robots (robot wizard)
Note: robots is used to tell robots which pages need to be indexed and which pages do not need to be indexed.
Content parameters include all, none, index, noindex, follow, and nofollow. The default value is all.
Example: <meta name = "robots" content = "none">
D. author (author)
Note: the author of the webpage
Example: <meta name = "author" content = "bluebox, web@7dspace.com">

Related Article

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.