The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> DOCTYPE Confusion
a01020304
post Jun 18 2009, 04:25 PM
Post #1





Group: Members
Posts: 1
Joined: 18-June 09
Member No.: 8,922



I have changed a few things since last night, am going to try another image viewer. Only problem is it requires my site to have a DOCTYPE on my site.
I have tried all the different types of DOCTYPE but the screen goes all over the place and image/text weird.

Has anyone any suggestions?

Here is the site without DOCTYPE
http://www.virtualhunterston.eu.org/castlegate.htm

Here is the site with DOCTYPE
http://www.virtualhunterston.eu.org/castle...20-%20Copy1.htm


I dont want to have to do loads of code changes as over 130 pages and that will frustrate me
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 18 2009, 07:11 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,017
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I recommend that you start by fixing the markup errors and CSS errors reported by the online tools. For starters, use an XHTML doctype if you're going to use XHTML syntax, and don't use Frameset doctypes except for framesets.

http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes
http://jigsaw.w3.org/css-validator/validat...g=1&lang=en

See also:
http://hsivonen.iki.fi/doctype/


--------------------
Darin McGrew
WDG Member since 1998
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 19 2009, 02:03 AM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,544
Joined: 9-August 06
Member No.: 6



The doctype isn't the only difference. The new page has JavaScript errors. The old has not. Maybe there are other differences too. I'd look into the JS errors.

A Frameset doctype is not what you want. That's for frameset documents. You should use the doctype that corresponds to the flavour of HTML that you actually write.
http://htmlhelp.com/tools/validator/doctype.html

Those slashes you use (<br />, <img... /> and so on) are used in XHTML. If you mean to write XHTML you should use an XHTML doctype. I suggest you stick to HTML 4.01 and remove the slashes instead. It's better to wait with XHTML until you know what the difference between HTML and XHTML is and can make an educated choice about it, if you want to use XHTML or not.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st October 2014 - 06:58 AM