The Elements of an HTML5 Page

The screenshot below shows all of the necessary elements of an HTML5 page.

A screenshot of a basic HTML5 page

Basic Elements Explained

Use the line numbers in the image for reference.

In summary, there are many changes from XHTML to HTML5, but most are in the direction of being less, not more strict. HTML5 is very forgiving, but there are some generic ideas that you can apply and some specific rules.

Generally,

Given those generic concepts, here are some simple rules to follow using HTML5: