
Originally Posted by
webfreak05
So the following is perfectly valid html5?
Code HTML4Strict:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My first html5 page</title>
</head>
<body>
</body>
</html>
If you like removing cruft, the meta tag could be written as <meta charset=utf-8> in HTML5. If you specify charset with HTTP, you can remove the meta altogether.
If you want you can also remove the html, head, and body start and end tags, and still be valid (both in HTML4 and HTML5).
Code:
<!doctype html>
<title>My first html5 page</title>
Bookmarks