Title: Accessibility &#8211; Remove tag
Last modified: May 10, 2018

---

# Accessibility – Remove tag

 *  Resolved [meinekleinehomepage](https://wordpress.org/support/users/meinekleinehomepage/)
 * (@meinekleinehomepage)
 * [8 years ago](https://wordpress.org/support/topic/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](https://validator.w3.org)),
   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!
    Greets
 * Alex
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Faccessibility-remove-tag%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years ago](https://wordpress.org/support/topic/accessibility-remove-tag/#post-10268976)
 * `<div class="form-group your-name">`
 * This is not output by Contact Form 7. Do you use a plugin to change Contact Form
   7’s output? If you are not sure, try deactivating all other plugins, and if you
   still see the same output, try switching theme to the default one (Twenty Seventeen).
 *  Thread Starter [meinekleinehomepage](https://wordpress.org/support/users/meinekleinehomepage/)
 * (@meinekleinehomepage)
 * [8 years ago](https://wordpress.org/support/topic/accessibility-remove-tag/#post-10272547)
 * Yes, it was a Plugin! (Custom Form 7 Bootstrap)
 * Thank you very much! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Accessibility – Remove tag’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [remove tag](https://wordpress.org/support/topic-tag/remove-tag/)
 * [validator](https://wordpress.org/support/topic-tag/validator/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * 2 replies
 * 2 participants
 * Last reply from: [meinekleinehomepage](https://wordpress.org/support/users/meinekleinehomepage/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/accessibility-remove-tag/#post-10272547)
 * Status: resolved