QUOTE(Megagamerx1 @ May 13 2011, 11:21 PM)
your code should have <head> & </head> surrounding the <title> tags.
Actually the start and end tags for the HTML, HEAD and BODY elements are optional in HTML4 and 5 (but not in XHTML). You must still organize the content so that the HEAD and BODY sections are separate, though (for example you can't put an H1 before TITLE). See e.g.
http://www.w3.org/TR/html401/struct/global.html#edef-HEAD But in a beginner's tutorial maybe it's still a good idea to use the tags, in order to emphasize/illustrate the separate nature of the HEAD and BODY sections. I also recall some javascript and CSS?) doesn't work properly in some browsers unless the tags are there.
QUOTE
Also, you need a !DOC Declaration. You should check out this if you have no idea what I'm talking about:
http://w3schools.com/html/html_doctype.aspTrue, see also
http://htmlhelp.com/faq/html/basics.html#doctypeHere's a valid HTML4 document:
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<title>foo</title>
<h1>foo</h1>