HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
validating form
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 400

PostPosted: Tue Jan 29, 2008 7:39 am     validating form Reply with quote

I have this code from line 40 to 62 which does not validate, as it is the google free search can anyone help me to validate it?
Code:
<div id="navigation">
<form id="search">
<!-- Google CSE Search Box Begins  -->
<form action="http://www.google.com/cse" id="searchbox_003119959939038504956:xrke8d9eiyi">
<input type="hidden" name="cx" value="003119959939038504956:xrke8d9eiyi">
<input type="text" name="q" size="25">
<input type="submit" name="sa" value="Search">

<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_003119959939038504956%3Axrke8d9eiyi&lang=en"></form></script>
<!-- Google CSE Search Box Ends -->
<ol id="menu">
     <li><a href="tutorials.htm">» tutorials</a></li>
      <li><a href="shortcuts.htm">» shortcut keys</a></li>
      <li><a href="vassistant.htm">» virtual assistant</a></li>
      <li><a href="desktop.htm">» desktop publishing</a></li>
      <li><a href="wordprocessing.htm">» word processing</a></li>
      <li><a href="spreadsheets.htm">» spreadsheets</a></li>
      <li><a href="prsentations.htm">» presentations</a></li>
      <li><a href="webdesign.htm">» web design</a></li>
      <li><a href="blog.htm">» blog articles</a></li>
      <li><a href="careers.htm">» career links</a></li>
      <li><a href="reviews.htm">» reviews</a></li>
      </ol>
</div>


the validator does not like the form and says more should be added to it, it says I have left off tags and points out the div should not be there but it is part of the navigation div. I cannot understand what the WC3 says.
madprof



Joined: 26 Jan 2008
Posts: 98

PostPosted: Tue Jan 29, 2008 2:28 pm     Reply with quote

Two <form> tags and only one </form> tag?
Not well-formed HTML as your </form> is buried between <script> and </script>. Those two won't help validation although did Google give you this stuff as you show it?
quartzy



Joined: 26 Dec 2007
Posts: 400

PostPosted: Wed Jan 30, 2008 4:36 am     re form Reply with quote

I saw that I had two form tags, so I made the <form id search> into a div.
Google gave me the rest so I added <p> and </p> tags and it worked.

Wish that javascript was so easy to validate.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial