Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


XHTML DOCTYPE for pages inside a frameset

Posted on 2005-02-24
Medium Priority
Last Modified: 2013-12-16

I'm using a frame and I use the DOCTYPE frameset in the frameset.html
But what should I use inside the pages in the frames?
Can I use strict or transitional, is there any rules about this?

// monica
Question by:monicajohnson
  • 3
LVL 31

Expert Comment

ID: 13391871
Hi Monica,

You should be using the transitional doctype within the pages:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

The frameset DTD is the exact equivalent to it, except for replacing the body element with the frame element.


Author Comment

ID: 13391925
Okej Thanks,

But why, do you know the reason?
What hapens if I use strict?

// monica
LVL 31

Expert Comment

ID: 13391971
It won't support the required attributes you need to use in Frames.

"The HTML 4.01 Strict DTD includes all elements and attributes that have not been deprecated or do not appear in frameset documents."

LVL 31

Accepted Solution

seanpowell earned 200 total points
ID: 13391986
If you look at the frameset DTD, you'll see that all it does is state that the frameset tag replaces the body tag, and then it includes the full transitional DTD.


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question