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">
In HTML 5, this is enough :
<meta charset="ISO-8859-1">
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript" />
Define description of the page:
<meta name="description" content="免费的 web 技术教程。" />
Define the latest version of the page:
<meta name="revised" content="David, 2008/8/8/" />
Refresh the page every 5 seconds:
<meta http-equiv="refresh" content="5" />
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
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!