Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Help with validating an IFrame form please?

Trying to validate an IFrame form on an xhtml Dreamweaver page?

11:30 pm on Oct 24, 2009 (gmt 0)

New User

5+ Year Member

joined:Oct 24, 2009
posts: 5
votes: 0

Hi Guys

I'm trying to validate a form so it can be included on my contact page.
Any suggestions would be greatly appreciated - I'm at a bit of a loss!

First time poster on the forum, and bona fide amateur with no formal training, but am trying my hardest!

The source code for the IFrame form was generated by a 'form builder' via the website host.

I have included the code beneath my name.

The page validated perfectly prior to introducing the form.

Should I maybe change the format of the Dreamweaver page to something other than xhtml to help the form validate?

Again, all suggestions would be really appreciated.

Warm regards



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> &#8232;<html xmlns="http://www.w3.org/1999/xhtml">

<iframe id="tincAppDoc" src="/tinc?key=QAxDEvTm&formname=Send_message" width="370" height="370" style="border:none" frameborder="0" allowtransparency="true" background-color="transparent"></iframe> &#8232;<script src="/spicons/tinc/common/script/tincapp.js"></script>

4:39 pm on Nov 19, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
votes: 0

Most "builders" available on the web are worthless, built by developers unaware of or indifferent to web standards, often years ago. But it is a good sign that you care about the quality of the code if you are validating it.

Here are the "problems" I observe with the generated code. Note that none of these things will "break" the page or the site, but they are still items out of spec.

<iframe> is merely tolerated in XHTML 1.0 Transitional, and not permitted at all in XHTML 1.0 Strict.

Delete &#8232; as it is a character entity for a "line separator"; character data is not legal between the DOCTYPE declaration and the <html> element.

The ampersand in your src attribute should be escaped as &amp;.

The "allowtransparency" and "background-color" attributes are Microsoft-only, and not generally valid.

Your <script> should include a MIME type (probably text/javascript).