Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
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.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>
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.
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 &.
The "allowtransparency" and "background-color" attributes are Microsoft-only, and not generally valid.