Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - XHTML Woes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XHTML Woes

 Post Reply Post Reply
Author
mark4man View Drop Down
Newbie
Newbie


Joined: 17 December 2002
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote mark4man Quote  Post ReplyReply Direct Link To This Post Topic: XHTML Woes
    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">
<html xmlns="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



Edited by mark4man
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.