Print Page | Close Window

XHTML Woes

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5062
Printed Date: 02 April 2026 at 4:24pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: XHTML Woes
Posted By: mark4man
Subject: XHTML Woes
Date Posted: 15 August 2003 at 7:56pm
In my reconstructed site (in which I basically took most of the graphic
content from my old site; & rebuilt a new site, from scratch, in DW), I made
the mistake of creating all my pages as XHTML Compliant.  When validated,
there were hundreds of mistakes.

Worse yet, the most important page, which contains a PayPal button linking
to a purchase form at PayPal, did not work at all...& the error was related
to (you guessed it), XHTML!!!

Out of frustration (& not being able to find an answer as how to convert
back to regular, average, everyday, ordinary HTML in the discussion groups),
I compared, through DW's Preferences dialog, new HTML 4.01 page templates,
which were coded as follows:

----------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

</body>
</html>
----------------------------------------------------------------------------

with new XHTML page templates, which were coded as follows:

----------------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml - http://www.w3.org/1999/xhtml ">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
</body>
</html>
----------------------------------------------------------------------------

And for the page that didn't work, I changed the DTD's (& all tags prior to
<head>) from the second (XHTML) to the first (HTML)...

...AND NOW THE PAGE WORKS FINE!

So, my questions are:

1) Did I do the right thing?...& can I do the same thing with the rest of my
pages in order to convert back to HTML...

...or...

2) Is converting back more complex than this (realizing that perhaps as DW
created my pages as XHTML compliant, the code for each entire page was
written as XHTML)?

...&...

3) If this is the case, how can I easily & correctly convert the pages back
to HTML?

Thanks,

mark4man




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net