HTML and CSS Reference
In-Depth Information
HTML5 Standard Syntax
<header
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
dir="ltr | rtl"
draggable="true | false | auto"
hidden="hidden"
id="unique alphanumeric identifier"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
lang="language code"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text">
</header>
HTML5 Event Attributes
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover,
ondragstart, ondrop, onerror, onfocus, onhashchange, onkeydown, onkeypress,
onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseout,
onmouseover, onmouseup, onmousewheel, onresize, onscroll, onselect,
onstorage, onsubmit, onunload
Examples
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Document Header </title>
</head>
<body>
<header>
<h1> Welcome to the Example </h1>
<h2> The more exciting subheading </h2>
</header>
<p> Yes it is yet another boring example. </p>
<footer><p> &copy; 2010 Boring Examples, Inc. </p></footer>
</body>
</html>
Search WWH ::




Custom Search