Home > Web Front-end > HTML Tutorial > How to use html meta tag

How to use html meta tag

silencement
Release: 2019-05-26 17:25:19
Original
3323 people have browsed it

How to use html meta tag

The role of meta tag.

metadata Chinese name is metadata, which is data used to describe data. It will not be displayed on the page, but can be recognized by the machine. It is often used to define the description, keywords, and last modification date of the page. , and other information stored by the browser on how to layout or reload the page. Search engines and other services.

Two attributes http-equiv attribute and name attribute

The name attribute is mainly used to describe web pages, such as keywords, narratives, etc. . The attribute value is content

.

A. keywords(keywords)

Description: Used to tell search engines the keywords of your web page. Example:


B. description (description of website content )

Description: Used to tell search engines the main content of your website. Example:


The more important thing is the viewport attribute. Commonly used in mobile design.


http-equiv attribute is equivalent to http file header attributes.


content-type is used to set the web page character set type for convenience Browser renders

//Old HTML, not recommended

C. cache-control (specify the caching mechanism followed by requests and responses)

The above is the detailed content of How to use html meta tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template