1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Right doctype for frames type page

Discussion in 'HTML & Website Design' started by itgl72, Feb 27, 2005.

  1. #1
    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!
     
    itgl72, Feb 27, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use frameset only if your page contains frames (i.e. it contains <frameset>, not <body>). Inside frames may be either frameset (if they contain subframes), transitional or strict. Strict DTD, however, disallows things like <a target="frame-name">.

    J.D.
     
    J.D., Feb 27, 2005 IP