Trying for valid HTML with DOCTYPE

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Trying for valid HTML with DOCTYPE

Post by Thunderstone »



In the regular ol' search script, I tried to add the DOCTYPE
tag ahead of the HTML tag:

<A NAME=top>
<!DOCTYPE HTML PUBLIC ...[clip]....>
<HTML>
<HEAD>
<TITLE>$title</TITLE>
</HEAD>
<setdb>
...[clip]...

This I do persuant to http://validator.w3.org/ .
But my DOCTYPE tag isn't sent to the browser.
How do I get the DOCTYPE tag sent to the browser so that the
HTML that Vortex produces is valid as defined by W3C?

(Why am I doing this? I changed the search form so that images
are used as the submit buttons. All is well except, I'm told,
when using Netscape v4.x on Mac OSv8. Works OK with Netscape
v4.x on non-Macs. Typically, when a page works fine on one browser
but not another, there's a problem with the HTML. So I'm trying
to validate the HTML and for that, it would seem I need the DOCTYPE tag.
Meanwhile, I don't have a Mac with OSv8 to experiment on.)

(Other reasons to validate one's HTML, FWIW, can be found at
http://www.hwg.org/resources/html/validation.html and
http://www.stars.com/Authoring/HTML/Validation/ )

-John Koch - - - __o
Knowledge Systems, Inc. - - - - _ \<,_
<John.ksi@webplus.net> - - (_)/ (_)
(A NET-FRIENDLY SIG. http://www.ncsa.uiuc.edu/Edu/ICG/pt1.ch2.Etiquette.html )



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Trying for valid HTML with DOCTYPE

Post by Thunderstone »



John.ksi@webplus.net said:

You should enclose any HTML which would be interpreted by Texis in
<VERB NOESC>
</VERB>
tags, e.g.

<VERB NOESC>
<!DOCTYPE HTML PUBLIC ...[clip]....>
</VERB>

John Turnbull
-------------
Thunderstone Software


Post Reply