WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Markup for question and answer scenario

for

From: Steve Faulkner
Date: Jun 20, 2015 2:36AM


On 20 June 2015 at 07:40, Sean Keegan < <EMAIL REMOVED> > wrote:

> Another attempt involved wrapping everything in a fieldset with the legend
> set as the question number, and then using a nested fieldset or div on the
> specific question and answer set. However, that nesting didn't seem quite
> right either.
>

Hi Sean, right, unless it contains form controls fieldset is not the right
way to mark it up

The fieldset element represents a set of form controls optionally grouped
> under a common name.
>

http://www.w3.org/TR/html5/forms.html#the-fieldset-element

--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;