A problem w/PRE element

Jordan Reiter (jreiter@mail.slc.edu)
Sun, 21 Sep 1997 19:26:33 -0500


Message-Id: <l03110708b04b69f5d0af@[192.168.1.117]>
Date: Sun, 21 Sep 1997 19:26:33 -0500
To: www-html@w3.org
From: Jordan Reiter <jreiter@mail.slc.edu>
Subject: A problem w/PRE element

I was validating a page using the Kindler, Gentler Validator (DOCTYPE HTML
4.0) and was told that my use of the PRE element was incorrect because
   : document type does not allow element "PRE" here; missing one of
   : "OBJECT", "IFRAME", "BUTTON" start-tag
I looked through the docs and found no reference to PRE being required to
be within OBJECT, IFRAME or BUTTON elements.  What is wrong here?  I have
included the source code for your perusal (edited to remove non-essential
content):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>FOO</TITLE>
</HEAD>
<BODY TEXT="#666666" LINK="#006666" VLINK="#006666" BGCOLOR="#CCCCCC">
<P ALIGN=CENTER><SMALL><PRE>
foo
   foo
      foo
</PRE></SMALL></P>
</BODY>
</HTML>

--------------------------------------------------------
[                    Jordan Reiter                     ]
[            mailto:jreiter@mail.slc.edu               ]
[       "Don't you realize that intellectual people    ]
[        are all ignorant because they can't spray     ]
[        paint that small?"                            ]
--------------------------------------------------------