Has it been a while till you created your last webpage? Here is a quick update on what happened since the last century.
A basic HTML template would look like this now.
The long DOCTYPE declaration is gone, in HTML5 you only need to write . This should always be your first line on every page so that the browser knows your page is an HTML page.
Instead of downloading jQuery, you only need to link to a copy of it on Microsoft’s or Google’s servers, e.g. with . A complete HTML page template will follow at the end of this post. Please note the two forward slashes, these make sure that the library is loaded with the same protocol as the webpage (http or https). Groovy.
In general we need to write way less code, there are tons of libraries, frameworks, tools and web services to make our lives easier. One of these frameworks is Bootstrap which will help you create beautiful, professional looking websites without you having to design anything. The huge advantage of such tools is that the code is tested and works in multiple browsers. If you remember testing websites on Internet Explorer or Netscape on a Mac that is something that you will really appreciate. Like with jQuery there is no need to download a local copy of Bootstrap and you can directly include it from an external server with . Take a look here to see more examples of Bootstrap in action.
And here a complete template for a modern HTML5 page.
My first project
HTML is fun again
Just believe you can do it and you are halfway there.
This template is just a start, there are websites like html5boilerplate.com where people spend a lot of time to create the perfect HTML5 template. But it is simple and before going further, just try to modify this page with some jQuery code and find out what else you can do with bootstrap.