next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects
Index of Subjects On Sat, 3 Jun 2000, Jeff Warnica wrote: > > On Sat, 3 Jun 2000, Jeff Warnica wrote: > > > > > Only the top page has a DTD, so none of the other pages are HTML. > > > > Not sure what this means... > > A doctype line, something like > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> > > so the viewer knows how to parse it. This is a feature which has been part of the HTML official recommendations since version 2, and provides a method (not complete in the above example) to indicate which version of the standard should be used to interpret the HTML coding. Until recently, (version 4, I think) the standard has said "required, but if missing, make assumptions..." Version 4 no longer mandates any assumptions, but backwards compatibility has always been part of HTML unless you indicate by specifying a DOCTYPE that codes are to be interpreted at a particular version. IF you specify a DOCTYPE, then you had better make sure that your coding conforms to that version. (HTML validators, such as the one at w3.org, will use the DOCTYPE you specify. Well written browsers will use the DOCTYPE to figure out some of the ambiguities between different versions, and in some cases to omit features that are not defined at that version.) Conversely, expect some browsers to mess up your pages if you use advanced features but don't specify a DOCTYPE. Ed Dyer aa146@chebucto.ns.ca (902) H 826-7496 CCN Postmaster http://www.chebucto.ns.ca/~aa146/ W 426-4894 CSuite Technical Workshop Religion Page Editor, Chebucto Community Network http://www.chebucto.ns.ca
next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects