Giving HTML a try (part 2)

Published 27/05/2004 09:58   |    Updated 13/02/2009 13:09

So what exactly have you done, and how?

Your document opened with an <html> tag. This told the browser that it was about to look at an HTML document. (Similarly, the </html> at the bottom of your document signalled the browser that you were ending your code).


The text between <head> and </head> told the browser that this was your heading.


The text between the <title> tags is the title of your document and is therefore displayed in your browser's caption.


The text between the <body> tags is the text that will actually be displayed in your browser. The text between the <b> and </b> tags will be displayed in bold.


In this way, starting with <html>, then creating your title, working on the <body> and then downwards through other elements such as images and eventually concluding with your final </body> and </html> closing tags, is how you'll create your first web pages.


Once you've gained your confidence, why not experiment with other kinds of tags and commands? There are plenty of useful online html tag resources such as


Inside Knowledge

If your browser's not showing the edits and changes you've been making, try using the refresh or reload button like you do when you're surfing for real.


Problems? Try these:

  • Check your work and make sure you've used US spellings (remember - 'color' not 'colour').
  • Ensure image files are in the same directory as webpage files and that you spell their file names the same way as in your HTML commands.
  • Check that you've saved your file in text format.
  • Browsers can't recognise "curly" quotation marks, so use only quotes that look like "this". (You may need to turn off the curly quote feature in your word processor.)
  • Check your syntax (i.e. the order in which the words and phrases appear in your HTML file) for possible errors. One way to do this is to use a validation service such as the W3C HTML Validation Service. It's free and should help you weed out any mistakes and improve the quality and accuracy of your HTML coding.


Inside Knowledge

You may see some HTML files saved with the extension .htm rather than the full .html. Don't worry. This is a legacy of the days when only three letter file extensions were possible, and both are equally acceptable.



« Giving HTML a try

Jargon Buster »



Please tell us how we can make this answer more useful.