1.1 Creating your First Website

Creating a website may seem to have arrived far too soon in this tutorial, but don't panic; this is actually easier than you may think. However, a few more tags are required first in order to do this, namely: <html>, <head> and <body>:

What do these tags do?

  • <html> This tells the browser we are using HTML;
  • <head> This provides information about the HTML document and will not be displayed on screen;
  • <body> This is the actual content of the HTML document that will be displayed on screen.

With these new tags at hand, we can make a start. The basic structure for almost every web page is as follows:

<html>

  <head>

  </head>

  <body>

  </body>

</html>

Is that it? Not quite. But although this document looks pretty empty right now, this is actually a valid webpage and is where it all starts. Take particular note that the tags were all closed in the same order in which they were opened i.e. HTML was opened first and so was closed last. It is important to remember to stick to this convention otherwise you can run into all sort of unexpected results on a webpage.