Re: XHTML 1.1 and Forms

by "Donna Smillie" <dms(at)zetnet.co.uk>

 Date:  Fri, 20 Jun 2003 17:58:52 +0100
 To:  <hwg-techniques(at)hwg.org>
 Cc:  "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>
 References:  fl
  todo: View Thread, Original
Hi John, me again :-)

I finally got this to validate.  Wrapped the form in a DIV (rather than P as
I suggested before - sorry about that, I got the wrong element - the main
reason for that is to center the form - the page still validates without the
DIV), and then wrapped the content of the form inside a P - INPUT elements
are inline elements, and it appears they need more than just FORM around
them to validate in XHTML.

You can see a copy of your page, with the changes that got it to validate,
at http://www.users.zetnet.co.uk/dms/test/testpage.html.  I'll take that off
the server once I know you've seen it.

Regards,
Donna

----- Original Message -----
From: "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, June 20, 2003 2:28 PM
Subject: RE: XHTML 1.1 and Forms


> Okay... I'm taking my form out of the paragraph, but am still running into
a
> validation issue. Now the validator tells me that the "input" element
isn't
> allowed. Ditto for line breaks. Here's the relevant code:
>
>    <form action="/customer40/DoClogin.asp" method="post">
>     <input type="text" size="20"  name="username" maxlength="80" />
>     <br />
>     <br />
>     <input type="image" src="https://hwg.org/wclanguage/c_login30x80.gif" name="b_submit"
> />
>    </form>
>
> What's necessary to make things right?
>
> John
>
> > http://www.taylor.k12.fl.us/new/employees/technology/support/work.order/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.