Home >Web Front-end >H5 Tutorial >What are the three elements of the meta tag?

What are the three elements of the meta tag?

王林
王林Original
2020-05-27 13:54:097611browse

What are the three elements of the meta tag?

#What are the three elements of the meta tag in html5?

1. Required attribute: content attribute

This attribute is used to define meta-information related to the http-equiv or name attribute. The content is to facilitate search robots to find information and classify it. of.

2. Optional attributes: name attribute

This attribute is mainly used to describe web pages. The value of the Name attribute can include: author, description, keyword, generator, etc.

3. Optional attribute: http-equiv attribute.

This attribute is equivalent to the header file of http. It can return some useful information to the browser to help display the content correctly and accurately. The values ​​of the http-equiv attribute can include content-type, expires, refresh, etc.

The above three attributes constitute the three elements of the meta tag in html5.

Recommended tutorial: html5 tutorial

The above is the detailed content of What are the three elements of the meta tag?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is h5 pageNext article:What is h5 page

Related articles

See more