There’s no reason to read any further, use HTML5 Boilerplate instead!
It is finally time to start switching to HTML5 for projects moving forward. If you’ve been following the progress you already know that xHTML will eventually be outdated and browsers will, eventually, support HTML5 functionality. So it doesn’t make sense to continue with xHTML; plus, now our clients to use HTML5 functionality as it becomes available without too many headaches.
Below basic doctype template I’m starting out with, please feel free to give me feedback.
<!DOCTYPE html> <html> <head> <title></title> <meta name="description" content="" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="style.css" /> <script src="js/jquery.min.js"></script> <!--[if lt IE 8]> <![endif]--> </head> <body> </body> </html>
Note: I included a holder for JQuery and and IE specific stylesheet (just in case). These can obviously be removed if they’re not needed for the project.
Awesome! Bout time you switched it up.