Title: Error in w3c html validator
Last modified: March 10, 2019

---

# Error in w3c html validator

 *  Resolved [PatriceF](https://wordpress.org/support/users/patricef/)
 * (@patricef)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-w3c-html-validator/)
 * There are two errors in your code breaking w3c valdation
 * Error: No p element in scope but a p end tag seen.
    </div></p> must be replaced
   by </div> in two files : wp-security-general-init-tasks.php and wp-security-captcha.
   php
 * thx to correct this
    best regards

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

 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-w3c-html-validator/#post-11296495)
 * Hi,
    I checked the code again and I see no issues – ie, all html elements such
   as <div> and <p> have closing tags. How are you checking the validation? Have
   you checked the actual rendered HTML pages?
 * Inside the php files the html code is split up across multiple lines where the
   variable containing that code is being concatenated with other code.
    Maybe your
   validator tool is not able to read the html code properly since it is constructed
   in fragments over multiple lines inside php code?
 *  Thread Starter [PatriceF](https://wordpress.org/support/users/patricef/)
 * (@patricef)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-w3c-html-validator/#post-11300774)
 * hello
    is use [https://validator.w3.org/nu/](https://validator.w3.org/nu/) you
   could ot have a <div>…</div> inside a <p> …</P> so </div></p> is not possible
 * Best regards
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-w3c-html-validator/#post-11302495)
 * Hi,
    Ah I see. I first thought the issue you were pointing out was something 
   to do with missing end tags.
 * I’ll take a look and see if I can modify the html to meet w3c validation.

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

The topic ‘Error in w3c html validator’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-w3c-html-validator/#post-11302495)
 * Status: resolved