View Single Post
  #1  
Old 04-22-2006, 08:23 PM
ClarkF1 ClarkF1 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 1
ClarkF1 is on a distinguished road
Question Problem with form tag in XHTML

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.
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote