View Single Post
Old Jul 10th, 2006, 7:31 AM   #4
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 4 Agent 47 is on a distinguished road
Have a look at this thread:

http://www.programmingforums.org/forum/thread9024.html

You have made some very similar mistakes.

As for your 'tutorial':

Your comments are wrong. What you need is:
<!--This is the beginning of a comment

		Any text or code in between the two comments is not looked at when you run the page.

this is the end of a comment-->

As for the rest - where's the doctype? The XML namespace? The
<head></head> tags? The content-tpe META? etc.

As the others have said, it is not a good idea to be teaching HTML
4 to people. There is no good reason why any new document you
create should be anything other than XHTML 1.0 Strict. Here's a
template to get you started.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Untitled Document</title>
	<style type="text/css">
	/*<![CDATA[*/

	/*]]>*/
	</style>
	<script type="text/JavaScript">
	/*<![CDATA[*/

	/*]]>*/
	</script>
</head>

<body>
</body>
</html>
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"

Last edited by Agent 47; Jul 10th, 2006 at 7:46 AM.
Agent 47 is offline   Reply With Quote