What is the usage of meta tag in html5

WBOY
Release: 2021-12-31 10:50:32
Original
2291 people have browsed it

In HTML5, the meta tag is used to provide metadata for the HTML document to be parsed by the browser. The syntax is ""; this tag is always located inside the head tag, and the metadata Passed in pairs as names or values ​​and called by the browser.

What is the usage of meta tag in html5

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

#What is the usage of meta tag in html5

Metadata (Metadata) is the data information of the data. The

tag provides metadata for an HTML document. The metadata will not be displayed on the client, but will be parsed by the browser.

The META element is usually used to specify the description, keywords, last modification time of the file, author and other metadata of the web page.

Metadata can be called using browsers (how content is displayed or pages are reloaded), search engines (keywords), or other web services.

The tag is usually located within the area.

Note: Metadata usually appears as name/value pairs.

Note: If the name attribute is not provided, the name in the name/value pair will use the value of the http-equiv attribute.

Examples are as follows:

Example 1 - Define document keywords for search engines:

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Copy after login

Example 2 - Define web page description:

<meta name="description" content="Free Web tutorials on HTML and CSS">
Copy after login

Example 3 - Definition page author:

<meta name="author" content="Hege Refsnes">
Copy after login

Example 4 - Refresh the page every 30 seconds:

<meta http-equiv="refresh" content="30">
Copy after login

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is the usage of meta tag in html5. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!