Official specification
http://www.w3.org/TR/html5/
Example
<!DOCTYPE html>
<html>
<head>
<title>Document title</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<h1>Hello World!</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
<p>roin velit est, hendrerit vitae, aliquet tincidunt, accumsan eu, pede.</p>
</body>
</html>
Secondary contents
Elements
| Element |
Description |
| Total |
105 |
| a |
Anchor |
| abbr |
Abbreviation |
| address |
Address |
| applet |
Java applet |
| area |
Client-side image map |
| article |
"Independent" section |
| aside |
"Auxiliary" section |
| audio |
Audio stream |
| b |
Bold text style |
| base |
Document base URI |
| bb |
User agent command that the user can invoke |
| bdo |
I18N BiDi over-ride |
| blockquote |
Long quotation |
| body |
Document body |
| br |
Forced line break |
| button |
Push button |
| canvas |
Bitmap canvas |
| caption |
(Table) caption |
| cite |
Citation |
| code |
Code fragment |
| col |
Table column |
| colgroup |
Table column group |
| command |
User-invokable command |
| datagrid |
Tree, list, or tabular data |
| datalist |
Data list |
| dd |
Definition description |
| del |
Deleted text |
| details |
Additional information |
| dfn |
Instance definition |
| dialog |
Conversation |
| div |
Generic container |
| dl |
Definition list |
| dt |
Definition term |
| em |
Emphasis |
| embed |
Integration point |
| fieldset |
Form control group |
| figure |
Paragraph with embedded content and caption |
| footer |
Section footer |
| form |
Interactive form |
| h1 |
Heading level 1 |
| h2 |
Heading level 2 |
| h3 |
Heading level 3 |
| h4 |
Heading level 4 |
| h5 |
Heading level 5 |
| h6 |
Heading level 6 |
| head |
Document head |
| header |
Section header |
| hr |
Horizontal rule |
| html |
Document root |
| i |
Italic text style |
| iframe |
Inline subwindow |
| img |
Embedded image |
| input |
Form control |
| ins |
Inserted text |
| keygen |
Key pair generator control |
| kbd |
Text to be entered |
| label |
Form field label (XHTML 2: list label) |
| legend |
Fieldset legend |
| li |
List item |
| link |
Link to another resource |
| map |
Client-side image map |
| mark |
Marked text |
| marquee |
Text scrolling |
| menu |
Menu list |
| meta |
Meta-information |
| meter |
Scalar measurement |
| nav |
Navigation links section |
| noscript |
Alternate content container for non script-based rendering |
| object |
External object |
| ol |
Ordered list |
| optgroup |
Option group |
| option |
Selectable choice |
| output |
Output |
| p |
Paragraph |
| param |
Named property value |
| pre |
Preformatted text |
| progress |
Progress of a task |
| q |
Short inline quotation |
| rp |
Ruby parentheses |
| rt |
Ruby text |
| ruby |
Ruby markup |
| samp |
Sample output |
| script |
Script statements |
| section |
Document section |
| select |
Option selector |
| small |
Small text style |
| source |
Media resource |
| span |
Generic container |
| strong |
Strong emphasis |
| style |
Definition of style rules |
| sub |
Subscript |
| sup |
Superscript |
| table |
Table |
| tbody |
Table body |
| td |
Table cell |
| textarea |
Multi-line text field |
| tfoot |
Table footer |
| th |
Table header cell |
| thead |
Table header |
| time |
Date and/or time |
| title |
Document title |
| tr |
Table row |
| ul |
Unordered list |
| var |
Variable instance |
| video |
Video |