Accessibility – Remove tag
-
Hello ??
I have installed Contact Form 7 on a clients website and now I am trying to get it accessible regarding the w3c rules for accessible websites.
I added <label> tags to the form (example below)
<label for="email" style="width: 100%;">Ihre Email-Adresse [email* your-email id:email]</label>
If I test the site with the w3c validator (w3c accessibility validator), I get an error like this:
Error: Element div not allowed as child of element label in this context. (Suppressing further errors from this subtree.)
From line 674, column 50; to line 674, column 83>Ihr Name <div class=”form-group your-name”><input
Contexts in which element div may be used:
Where flow content is expected.
As a child of a dl element.
Content model for element label:
Phrasing content, but with no descendant labelable elements unless it is the element’s labeled control, and no descendant label elements.Do you know how I can get rid of the <div> tag without braking the form?
Thank you!
GreetsAlex
The page I need help with: [log in to see the link]
- The topic ‘Accessibility – Remove tag’ is closed to new replies.