Home > Web Front-end > JS Tutorial > Detailed explanation of meta in Html

Detailed explanation of meta in Html

一个新手
Release: 2017-09-20 10:52:32
Original
2045 people have browsed it

Definition and Usage
The element provides meta-information about the page, such as descriptions and keywords for search engines and update frequency.

The tag is located at the head of the document and does not contain any content. The tag's attributes define the name/value pairs associated with the document.

Differences between HTML 4.01 and HTML 5
In HTML 5, the scheme attribute is no longer supported.
In HTML 5, there is a new charset attribute that makes character set definition easier.
In HTML 4.01, you have to write like this:

##

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
Copy after login

In HTML 5, this is enough :

<meta charset="ISO-8859-1">
Copy after login

Define keywords for search engines:


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

Define description of the page:

<meta name="description" content="免费的 web 技术教程。" />
Copy after login

Define the latest version of the page:

<meta name="revised" content="David, 2008/8/8/" />
Copy after login

Refresh the page every 5 seconds:

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

The following are some of its related properties:

Event properties:

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, 
ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, 
onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, 
onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
Copy after login

The above is the detailed content of Detailed explanation of meta in Html. 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