Quote:
Originally Posted by ClarkF1 I have the following code for my webpage: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <**** **********="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="layout.css" /> <title>Photo Gallery Admin Panel</title></head><body> <div id="main"><h1>Set Password</h1><p> <form action="gallery_admin.php?act=new" name="setpassword" method="post"> <label for="password">Enter admin password: </label> <div id="finput"><input id="password" type="password" name="pass" size="20" /> <div id="finput"><input id="submit" type="submit" value="Set Password" /></div> </form></p> </div> <div id="footer"><p /><p /> <table class="f1"> <tr><td></td></tr> <tr> <td></td></tr> <tr><td><h3>Photo Gallery Wizard by <a href="http://trionite.chris-kent.co.uk">Trionite Design</a></h3></td></tr> <tr><td class="f2"> <a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a></td></tr> </table> </div> </body> </html> However I'm getting: Code: # Error Line 10 column 58: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag.
<form action="gallery_admin.php?act=new" method="post">
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>"). I can't see what the problem is. |
Hi
can anybody tell us the minor problem in this code and sort out our queries
thanks