|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello every one, thanks for your help before hand,
I have validating my own website, so far so good, but I have this problem. I can not figure out why is not validating, the problem lies on this second line of code: <input type="hidden" name="cfgId" value="1" /> So part of the form looks like this: <form action="/cgi-bin/ssecure/ssecure.pl" method="post" enctype="multipart/form-data"> <input type="hidden" name="cfgId" value="1" /> The Error message for validation says this: Validation Output: 1 Error Line 152, Column 49: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. <input type="hidden" name="cfgId" value="1" /> <input type="hidden" name="cfgId" value="1" /> The last haracter ">" of this last line are in RED. Then it says: The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). ------------------------------------------------------------------------ The question, what is that I am doing wrong? Thanks, |
|
#2
|
|||
|
|||
|
Just add a <p> tag or whatever tags they specified before you code the form validation. So before <form> you can put a <p> or before <input>'s
|
|
#3
|
||||
|
||||
|
Welcome to DevShed Forums, mevaser.
![]() Only block-level elements may be a direct child of a <form>. So, put that <input> in a <div>, which is the generic block-level element. This is really an [X]HTML question, so I'm moving this. ** Thread Moved **
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. Last edited by Kravvitz : May 6th, 2008 at 12:23 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Validation problem (Form) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|