Title: [Plugin: Contact Form 7] Code is not valide
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] Code is not valide

 *  [marcup.ch](https://wordpress.org/support/users/marcupch/)
 * (@marcupch)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/)
 * Hi, my developer has worked one week, but contact form 7 code is not valid W3C
   code.
    Quote: “I have resolve w3c error. One error is there which is dynamically
   generated from contact form 7. So if I tried to resolve it , then it might affect
   at other place too.”
 * Any idea?
    We enjoy working with this plugin, but we want to make our page 100%
   webstandard compliant.
 * Best, Michael
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1782903)
 * What’s the validation error? I haven’t noticed any invalid markup generated by
   this plugin.
 *  Thread Starter [marcup.ch](https://wordpress.org/support/users/marcupch/)
 * (@marcupch)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783028)
 * Hi Esmi
    Thank you for your message. Here is the error from the W3C.
 * Error Line 446, Column 57: document type does not allow element “div” here; missing
   one of “object”, “ins”, “del”, “map”, “button” start-tag
 * <p><div class=”wpcf7-response-output wpcf7-display-none”></div></p>
 * Position where error dedected: ……none”></div></p>….. = this character: “>”
 * The mentioned element is not allowed to appear in the context in which you’ve
   placed it; the other mentioned elements are the only ones that are both allowed
   there and can contain the element mentioned. This might mean that you need a 
   containing element, or possibly that you’ve forgotten to close a previous element.
 * 
 * Best, Michael
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783113)
 * Have you placed the CF7 shortcode inside `<p></p>` tags in your post/page?
 *  Thread Starter [marcup.ch](https://wordpress.org/support/users/marcupch/)
 * (@marcupch)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783125)
 * yes, but on many pages/posts. The error would thus appear more than once in W3C.
   But if we check our website, only 1 (last of 60..) is shown. Have send you message
   on your website.
    Best, Michael
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783145)
 * Don’t place the CF7 shortcode inside **any** HTML tag. It’s completely standalone&
   self-contained.
 *  [leoquill](https://wordpress.org/support/users/leoquill/)
 * (@leoquill)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783244)
 * I’m having the same problem. I did not place the shortcode inside HTML tags and
   I get the following validation error:
 * No p element in scope but a p end tag seen.
    <p><div class=”wpcf7-response-output
   wpcf7-display-none”></div></p>
 * Leo

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

The topic ‘[Plugin: Contact Form 7] Code is not valide’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [leoquill](https://wordpress.org/support/users/leoquill/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-code-is-not-valide/#post-1783244)
 * Status: not resolved