The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

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

Group: Members
Posts: 4
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

Here is the site with DOCTYPE

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,251
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.;warnings=yes

See also:
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Jun 19 2009, 02:03 AM
Post #3

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

Group: WDG Moderators
Posts: 17,645
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.

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.
User is online!PM
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: 18th August 2017 - 12:08 AM