homepage Welcome to WebmasterWorld Guest from 54.146.190.193
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Forms in 4.01 strict
error messages re tag <input>
gstick

5+ Year Member



 
Msg#: 4108884 posted 2:09 pm on Apr 2, 2010 (gmt 0)

I rarely use forms. Now I need a response form and I am getting an error message that "In HTML 4.01 Strict the tag <form> cannot contain a tag <input>. What is the alternative?

 

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4108884 posted 3:05 pm on Apr 2, 2010 (gmt 0)

The <form> element [w3.org] cannot directly contain <input> as a child. Form can only include block or script elements. So typically the best way to create your form is to include an inner <div> element. For example:

<form action="#">
<div>
<input ...>
...
</div>
</form>

gstick

5+ Year Member



 
Msg#: 4108884 posted 8:46 pm on Apr 3, 2010 (gmt 0)

Fotiman thanks for the quick reply.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved