W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2016

Re: Is the <form> tag mandatory?

From: Brian Lovely <brian@studiobl.com>
Date: Sun, 30 Oct 2016 21:42:29 -0400
Message-Id: <464A1DA1-B9B1-4B23-994E-5C8A8C2FD3C5@studiobl.com>
To: WAI Interest Group <w3c-wai-ig@w3.org>


Brian Lovely
Brian@studiobl.com

> On Oct 27, 2016, at 10:36 AM, Mohammad, Ashraf <Ashraf.Mohammad@sabre.com> wrote:
> 
> Hi All,
> Form submission earlier was done only using the “action”, “method- get or post” and button type “submit” within the <form> tags:
> <form action=“login.asp" method="get”>
>  <fieldset>
>    <legend>Login</legend>
>    <label> Username: <input type="text" name=“username”/></label>
>    <label> Password: <input type="text" name=“password”/></label>
>    <input type="submit" value=“Submit”/>
>      </fieldset>
> </form>
> 
> Forms submission are commonly handled using ajax these days. Submit button has a onClick function which handle the submission.
> <fieldset>
>    <legend>Login</legend>
>    <label> Username: <input type="text" name=“username”/></label>
>    <label> Password: <input type="text" name=“password”/></label>
>    <button  onclick=“Submit()”>Submit</button>
> </fieldset>
> So do we still be need to add the Form tag ? and does it help the screenreaders? Or <fieldset>  with proper labels and inputs elements suffice and are accessible in themselves.
> 
> Thank you,
> Ashraf
> 
Received on Monday, 31 October 2016 04:29:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 31 October 2016 04:29:44 UTC