HTML5 Failsafe DTD

Post Reply
User avatar
Administrator
Site Admin
Posts: 1777
Joined: Thu Mar 22, 2018 10:19 am

HTML5 Failsafe DTD

Post by Administrator » Mon Dec 03, 2018 11:57 pm

If you want a simple html5 page use this as your baseline then build from it.

Code: Select all

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html> 
For HTML5 you can just use

Code: Select all

<!DOCTYPE html>
the DTD is practically out of date for this version of HTML. If your DTD is incorrect some of your javascript may fail.

Post Reply