Subject: Re: Off Topic: Need some HTML coding feedback
From: Christopher E. Brown (cbrown@woods.net)
Date: Fri Jun 07 2002 - 08:23:49 AKDT
On Wed, 5 Jun 2002, James McMorris wrote:
> Are there any HTML gurus on the list that can give some feedback? I'm
> just learning and decided to run my code thru TidyHTML which is
> supposed to help you find errors and reduce size.
> http://tidy.sourceforge.net/
You need to visit www.w3.org and read up on HTML standards (and you
may find the validator their useful).
You are writing untyped HTML, so browsers and tools have no idea what
standards to apply.
An example would be
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Author" content="Christopher E. Brown <cbrown@woods.net>">
<meta name="keywords" content="proper, html">
<meta name="ROBOTS" content="ALL">
<link rel="stylesheet" type="text/css" href="mystyle.css">
<title>The title</title>
</head>
<body>
<h1>This is a header</h1>
<p>I am enclosing this block of text it a paragraph tag pair</p>
<pre>And this one in preformat tags</pre>
</body>