HTML5+Requirements

=New HTML5 requirements = There’s a few extra lines to add to your document to make it validated at the HTML5 standard.

1. Declare a doctype
The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the tag. The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. It basically allows the browser to know what type of document to expect.

 <!doctype html>

2. Include the language attribute
Specifies a language code for the content in an element.



3. Include the meta tag for character set
The HTML5 editors looked at the fact that developers were writing the meta tag incorrectly and that browsers were interpreting it anyway, and decided to make this shortened syntax valid. Now with HTML5 you can add your character encoding with a much easier to remember META element. Place this in your > section.

 