#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!