Detailed explanation of meta in Html

一个新手
Release: 2017-09-20 10:52:32
Original
1914 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 pairsassociated 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:

##

Copy after login

In HTML 5, this is enough :

Copy after login

Define keywords for search engines:


Copy after login

Define description of the page:

Copy after login

Define the latest version of the page:

Copy after login

Refresh the page every 5 seconds:

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