HTML5 is the fifth revision and newest version of the HTML standard superseding HTML 4.01, XHTML 1.0, and XHTML 1.1. Below is a basic HTML5 template. Copy the HTML below to begin working with a minimal HTML5 document.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="Your HTML, CSS, and JavaScript playground."> <title>HTML, CSS, and JS Playground</title> <link rel="stylesheet" href="css/style.css"> <!--[if lt IE 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> <![endif]--> </head> <body> <!-- Body contents --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="js/script.js"></script> </body> </html>
The template above includes jQuery and HTML5 Shiv script (html5shiv-printshiv.min.js). The HTML5 Shiv script enables use of HTML5 sectioning elements in legacy Internet Explorer and provides basic HTML5 styling for Internet Explorer 6-9, Safari 4.x (and iPhone 3.x), and Firefox 3.x.