join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Introduction


Head

Your Doctype tag will be:
<!DOCTYPE html>
that's it. Any or all can be upper case or lower case.

DOCTYPEs are required for legacy reasons. When omitted, browsers tend to use a different rendering mode that is incompatible with some specifications. Including the DOCTYPE in a document ensures that the browser makes a best-effort attempt at following the relevant specifications. THE DOCTYPE

Charactor encoding

has now become shorter
<meta charset="UTF-8">

Language

For English
<html lang="en">
More at: Declaring Languages in HTML5

Link Tag

has also become shorter you not longer need to include text/css
<link rel="stylesheet" href="name.css">

Java Script

You no longer have to specify java script: text/javascript. Now its much simpler:
<script src="name.js"></script>