Forum Moderators: open

Message Too Old, No Replies

Right doctype for frames type page

         

itgl72

8:29 pm on Feb 27, 2005 (gmt 0)

10+ Year Member



Working on a project that requires frames. I have been validating the html/css pages separately to make sure they are at least good on that level. The actual frame data page (in my case index.html) never validates anyway. Not sure why.

Anyway, on my index.html page I have the following doctype:

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

In the pages that are part of the frames page I have the following doctype:

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

Is this the correct way to set the doctypes on a frames type page? I am not sure if for some reason I should use the first doctype above in ALL PAGES because it is a frames page.

Look forward to your suggestions, thank you!

encyclo

4:34 pm on Feb 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have the doctypes set correctly, however the frameset specification is rather sparse compared with the widely-supported proprietary attributes which are commonly used.

On the rare occasions I use a frameset, I tend to concentrate on validating the internal pages, and leave the frameset page with a few unknown attribute errors as required.

What errors are you getting?

itgl72

6:42 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



The pages within the frameset are fine when validating. The frameset page however has errors I do not exactly remember at the moment. Sorry, not at that machine right now.