Re: Is the <form> tag mandatory?

Hi Steve,

On 27/10/2016 17:56, Steve Faulkner wrote:
>
> On 27 October 2016 at 16:42, Christophe Strobbe
> <strobbe@hdm-stuttgart.de <mailto: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
>     <https://www.w3.org/TR/html5/forms.html#the-form-element>>.
>
>
> Hi Christophe, they are not mandatory to use, but if you do have a
> start tag <form> you must have an end tag </form>

How does that rhyme with the statement "Neither tag is omissible." in
the HTML5.0 specification?
(You can find the same statement about elements such as label, legend,
textarea, header, footer, main, aside, section, nav and figure. For
example, how would you know that something is a legend when there is
neither a start tag nor an end tag?)
The omission of tags follows certain rules:
<https://www.w3.org/TR/html5/syntax.html#optional-tags>.

Best regards,

Christophe

>
> Ashraf, use of the form element is not a requirement for
> accessibility. If the interaction you have designed does not need a
> form element to function then that is fine.
>
> --
>
> Regards
>
> SteveF
> Current Standards Work @W3C
> <http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>


-- 
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.

Received on Thursday, 27 October 2016 16:28:52 UTC