SuzyUK

msg:4237579 | 9:43 pm on Dec 1, 2010 (gmt 0) |
it's the Doctype, if that was a frameset document it would not have anything else (e.g. scripts) in it try:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
instead of:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> PS: my manners are atrocious! sorry.. Welcome to WebmasterWorld marilyndwalker [edited by: SuzyUK at 9:47 pm (utc) on Dec 1, 2010]
|
Fotiman

msg:4237580 | 9:44 pm on Dec 1, 2010 (gmt 0) |
The problem is that you have specified a Frameset DOCTYPE, and Framesets do not contain a body element. You should probably use either an HTML5 doctype: <!DOCTYPE html> HTML 4.01 Strict doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> or HTML 4.01 Transitional doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
marilyndwalker

msg:4237582 | 9:51 pm on Dec 1, 2010 (gmt 0) |
OK thanks. There is an inline frame later in the document, but I take it that the frameset spec is not necessary for that? I haven't used frames much.
|
alt131

msg:4237585 | 9:52 pm on Dec 1, 2010 (gmt 0) |
Welcome to WebmasterWorld marilyndwalker ;), and good on you for cleaning up first. To add to the above advice: If you really do have frames you need to use the doctype you already have, but use <frameset> rather than <body>. The recommendation [w3.org] has an example document. Even if you aren't using frames you may find it interesting because it makes it really esy to see why your document was failing validation.
|
tedster

msg:4237592 | 10:03 pm on Dec 1, 2010 (gmt 0) |
| There is an inline frame later in the document, but I take it that the frameset spec is not necessary for that? |
| That is correct. The frameset DTD only applies to the actual <frame> attribute. In fact, in HTML 5, the <iframe> element will still be supported, but not the <frame> element. Reference [w3schools.com]
|
|