473,383 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Need DOCTYPE help

When I validate the source of http://www.24stores.com I'm told
that I have an incorrect DOCTYPE statement.

How can I, or can someone determine what I'm doing wrong !!

I have no idea which doctype setting to specify.

Might this also be the reason that the page shows differently in IE vs
Mozilla ??

Thanks in advance.

John

Jan 30 '06 #1
6 1669
"jperillo" <Jo**@Perillo.Com> wrote:
When I validate the source of http://www.24stores.com I'm told
that I have an incorrect DOCTYPE statement.
As you do. Consult the HTML specifications for the exact form of a DOCTYPE
declaration.
How can I, or can someone determine what I'm doing wrong !!
Well, pretty much everything. The page is a horrendously messed-up tag
sallad. Surely the fastest way to fix it is to start from scratch. Try
reading a good introduction to HTML.

Using a validator to check the mess would be comparable to feeding some text
in pig Latin into a spelling checker for English.
Might this also be the reason that the page shows differently in IE vs
Mozilla ??


Surely it may contribute to that.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jan 30 '06 #2
jperillo wrote :
When I validate the source of http://www.24stores.com I'm told
that I have an incorrect DOCTYPE statement.

How can I, or can someone determine what I'm doing wrong !!

I have no idea which doctype setting to specify.

Might this also be the reason that the page shows differently in IE vs
Mozilla ??

Mozilla (Seamonkey, Firefox, Galeon, K-meleon, etc) and IE6 will render
pages more closely to web standards if you use a doctype declaration
which triggers standards compliant rendering mode in IE6. HTML 4.01
strict triggers standards compliant rendering mode in IE6 and in all
other modern browsers.
Thanks in advance.

John

For many reasons I won't explain here, I recommend you use HTML 4.01
strict. Like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

More reading:

Recommended DTDs to use in your Web document:
http://www.w3.org/QA/2002/04/valid-dtd-list.html
How to achieve Web standards and quality in your site:
http://www.w3.org/QA/2002/04/Web-Quality
Activating the Right Layout Mode Using the Doctype Declaration (a bit
outdated)
http://hsivonen.iki.fi/doctype/
Nvu User Guide recommends using HTML 4.01 strict:
http://nvudev.com/guide/1.0PR/ugs03.htm#s321
Gérard
--
remove blah to email me
Jan 30 '06 #3
"Gérard Talbot" <ne***********@gtalbot.org> wrote in message
news:44***********@uni-berlin.de...
jperillo wrote :
When I validate the source of http://www.24stores.com I'm told
that I have an incorrect DOCTYPE statement.
For many reasons I won't explain here, I recommend you use HTML 4.01
strict. Like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


There's one thing which has been niggling me for a while - if every web page
used the above doctype then wouldn't that swamp www.w3.org with requests for
the strict.dtd file? What actually happens when a browser encounters the
doctype declaration?
Jan 31 '06 #4
Danny@Kendal wrote:
"Gérard Talbot" <ne***********@gtalbot.org> wrote:
For many reasons I won't explain here, I recommend you use HTML 4.01
strict. Like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
There's one thing which has been niggling me for a while - if every web
page used the above doctype then wouldn't that swamp www.w3.org with
requests for the strict.dtd file?


Only if every page was parsed by a parser that actually referenced
DTDs.
What actually happens when a browser
encounters the doctype declaration?


Either nothing at all (in older browsers) or the doctype is compared
against an internal list of values and the rendering mode is set to
Quirks or Standards (in many modern browsers). That's all.

Steve

Jan 31 '06 #5
On Tue, 31 Jan 2006 10:22:29 -0000, "Danny@Kendal"
<da***@removethisbit.ghpkendal.co.uk> wrote:
There's one thing which has been niggling me for a while - if every web page
used the above doctype then wouldn't that swamp www.w3.org with requests for
the strict.dtd file?
Obviously not 8-)
What actually happens when a browser encounters the
doctype declaration?


Three things can happen:

* The browser recognises it and already has the DTD hard-coded into its
executable. There aren't many of these, and they hardly change very
often. The "DTD" here might be very crudely or partially represented -
there's little real need for it in a web parser, they have to make the
best of what they can get.

* The browser ignores it all anyway. The page renderer is coded in
visual basic and old string and it's sticks whatever it likes, wherever
it likes.

* It's a traditional SGML parser (unlikely to be found on the web). It
grabs one copy of that DTD, then caches it.
Feb 1 '06 #6
"Andy Dingley" <di*****@codesmiths.com> wrote in message
news:p5********************************@4ax.com...
On Tue, 31 Jan 2006 10:22:29 -0000, "Danny@Kendal"
<da***@removethisbit.ghpkendal.co.uk> wrote:
There's one thing which has been niggling me for a while - if every web
page
used the above doctype then wouldn't that swamp www.w3.org with requests
for
the strict.dtd file?


Obviously not 8-)
What actually happens when a browser encounters the
doctype declaration?


Three things can happen:

* The browser recognises it and already has the DTD hard-coded into its
executable. There aren't many of these, and they hardly change very
often. The "DTD" here might be very crudely or partially represented -
there's little real need for it in a web parser, they have to make the
best of what they can get.


Ah, I can sleep soundly once more.
Feb 1 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bud Curtis | last post by:
For some reason on my system I can't get the following elementry web.xml to validate. It looks like JonAS will only process an XML if it is valid. For some reason a very similar web.xml on JBoss...
3
by: bill turner | last post by:
I've searched the web and news groups. It seems others have had this problem. Unfortunately, the solution seems to be exactly what I've coded. If anybody can point out what is wrong, I'd truly...
18
by: Raymond Alexander | last post by:
I produce a couple of simple web sites on Frontpage 2002 and when attempting to validate the pages via W3C.org I get the FATAL ERROR message because the pages don't have the proper DTD's. My pages...
12
by: Robert Misiorowski | last post by:
Hello, I have a very perplexing (at least to me) problem that hopefully someone can help me with. I'm making a site with a 3 column layout. In the middle column (my fluid column) I am trying to...
7
by: mike | last post by:
Hello, After reading all the past post and going to the faq on frameset tags I am still don't understand how this works and need some help on getting this validated if possible. Here is the error...
2
by: PapaRandy | last post by:
Hello, I am trying to validate the following .py webpage as HTML (through W3C). I put: ----------------------------------------------------------------------------- print "Content-type:...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
2
by: jluo | last post by:
Hi all, Need some help here. I'm using these in a xsl: ~~~~~~~~~~~~~~~ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"...
5
vs2k8
by: vs2k8 | last post by:
Hello guys, My report is based on below query: SELECT Log_Tbl.DocType, Log_Tbl.DocGroup, Count(Nz(.,1)) AS TotPname, Count( & ) AS ECounts FROM Log_Tbl LEFT JOIN EDes_Tbl ON Log_Tbl.IdNum =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.