Click to See Complete Forum and Search --> : HTML Pages on a CD


iamlucky13
03-26-2005, 03:54 AM
I'm currently working on a small educational web page for an ASME web competition. (http://www.asme.org/students/competitions/technicalweb.html) (link is just information about the contest).

The rules require that the entry be given to the judges on a CD, and I expect that the computers will not be connected to the internet when judging the web page entries. Among my concerns, I'm worried that the computers will not have the proper DTD file cached and the pages will render in quirks mode, screwing up a few (admittedly minor) things, like margins in IE. Assuming I save a copy of "xhtml1-strict.dtd" (downloaded from w3.org) on the CD with my html files, does anybody know if the following doctype declaration will work?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd">

Also, is there anything else I should consider when authoring a page to be run from a CD?

Thanks!

HaganeNoKokoro
03-26-2005, 05:03 AM
I'm not sure. I just tried it with the HTML 4.01 strict.dtd and the page info (netscape7 / firefox) said it was rendering in standards-compliance mode.

My guess is as long as you specify a syntactically correct doctype, the browser will go into standards-compliance mode. And, if you copied the real, standards-compliant dtd file, then your page should behave properly.

ray326
03-26-2005, 04:56 PM
I've never heard anyone report a browser actually loading a DTD. I too suspect that any of the full doctypes HTML 4.01 and newer will put browsers into standards mode.

js_prof_cons
03-26-2005, 05:12 PM
Just to give a heads-up. You mentioned IE. IE really doesn't look at the DOCTYPE it is using. If the DOCTYPE tag is there, I believe it justs goes into its fake standards mode. I can't find the thread, but I'm pretty sure someone here pointed that out.

iamlucky13
03-28-2005, 03:44 AM
You mentioned IE. IE really doesn't look at the DOCTYPE it is using. If the DOCTYPE tag is there, I believe it justs goes into its fake standards mode.
Haha. Why am I not surprised?

An article on ALA said that you needed to have a proper URI in the DTD. It gave an example of the sample DTD's on w3.org and said those wouldn't work because they had a local URI instead of complete. I assumed that implied there was a need to download a copy of the file. Guess not, but if so, it's no real loss. A few things won't line up and at most I'm out $50. Thanks guys.