473,241 Members | 1,516 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,241 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 1662
"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 =...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.