Re: Is the <form> tag mandatory?

If no one has yet indicated this, many screen readers need the FORM tag in order to process the input fields and associated LABEL attributes correctly.

Elizabeth
> On Oct 27, 2016, at 11:42 AM, Christophe Strobbe <strobbe@hdm-stuttgart.de> wrote:
> 
> 
> According to the HTML5 specification, the both the start tag and the end
> tag of the form element are mandatory:
> <https://www.w3.org/TR/html5/forms.html#the-form-element>.
> 
> On 27/10/2016 16:36, Mohammad, Ashraf 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>
> 
> Not all form controls are grouped with fieldsets.
> 
> Best regards,
> 
> Christophe
> 
>> 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
>> 
>> 
> 
> 
> -- 
> Christophe Strobbe
> Akademischer Mitarbeiter
> Responsive Media Experience Research Group (REMEX)
> Hochschule der Medien
> Nobelstraße 10
> 70569 Stuttgart
> Tel. +49 711 8923 2749
> 
> “I drink tea and I know things.” 
> Falsely attributed to Christophe Lannister.
> 
> 
> 

=-=-=-=-=-=-=-=-=-=-=-=-=
Elizabeth J. Pyatt, Ph.D.
Instructional Designer
Teaching and Learning with Technology
Penn State University
ejp10@psu.edu, (814) 865-0805 or (814) 865-2030 (Main Office)

3A Shields Building
University Park, PA 16802
http://www.personal.psu.edu/ejp10/psu
http://tlt.psu.edu

Received on Thursday, 27 October 2016 16:34:31 UTC