Doctypes

by "Kapterian, Sophia (E-mail)" <digitek(at)cytanet.com.cy>

 Date:  Wed, 24 Mar 2004 00:54:05 +0200
 To:  <hwg-basics(at)hwg.org>,
"'Anthony Harper'" <aharper727(at)tampabay.rr.com>
 In-Reply-To:  rr
  todo: View Thread, Original
Allen Harper wrote:

<  Still on the same file, I get errors for using link, vlink, and alink
<  properties in the body tag. Are these vendor(MS)-specific properties? Or
<  are they being/have been phased out?

First you need to decide whether you will be using deprecated elements (not
recommended) like valign, vlink, alink, link etc. and then put the correct
doctype in place. For reference, see either the W3C or online resources,
like http://www.htmlhelp.com/tools/validator/doctype.html

For html 4.01 strict, first insert this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

With strict doctype, you have to separate your structure from presentation,
therefore, you will either use stylesheets, or go for the transitional
doctype which allows deprecated elements.

Next remove the end slashes from the meta, link and image tags. You need the
end slash if you're writing XHTML, but not in HTML 4.01.  You also have a td
without the closing >. Correct to <td valign="top"> and your problems are
gone.

HTH
Sophia

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA