Title: Valid HTMl5 &#8211; Easy fix
Last modified: August 21, 2016

---

# Valid HTMl5 – Easy fix

 *  Resolved [jontreefish](https://wordpress.org/support/users/jontreefish/)
 * (@jontreefish)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html5-easy-fix/)
 * Just a small suggestion/fix. In contact-form.view.php there are a few span’s 
   with the ‘for’ attribute. The for attribute should only really be on the label
   elements, as such it is resulting in a validation error. If you could remove 
   the ‘for’ attributes from the span elements in the next update it would be muchley
   appreciated.
 * Keep up the good work! It’s a fantastically useful plugin 🙂
 * [https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/)

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

 *  [megnicholas](https://wordpress.org/support/users/megnicholas/)
 * (@megnicholas)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html5-easy-fix/#post-4763584)
 * Hi there.
 * Unfortunately I can’t take out the ‘for’ attributes as the form validation jquery
   script requires it to be there.
 *  Thread Starter [jontreefish](https://wordpress.org/support/users/jontreefish/)
 * (@jontreefish)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html5-easy-fix/#post-4763602)
 * Hi Meg,
 * Thanks for the quick reply.
 * Found a fix.
 * in jquery.validate.contact.form.js
 * Change :
    `$errele = $form.find("div[for='cscf_" + name +"']");`
 * to
 * `$errele = $form.find("div[id='error_cscf_" + name +"']");`
 * And then in contact.form.view.php
 * change spans from
 * `for="csrf_email"`
 *  to
 * `id="error_csrf_email" etc`
 * All the best
 * Jon
 *  Thread Starter [jontreefish](https://wordpress.org/support/users/jontreefish/)
 * (@jontreefish)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html5-easy-fix/#post-4763608)
 * Ignore that. It doesn’t work as hoped! Will keep trying!

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

The topic ‘Valid HTMl5 – Easy fix’ is closed to new replies.

 * ![](https://ps.w.org/clean-and-simple-contact-form-by-meg-nicholas/assets/icon-
   256x256.png?rev=2552365)
 * [Contact Form Clean and Simple](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/)
 * [Active Topics](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [jontreefish](https://wordpress.org/support/users/jontreefish/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html5-easy-fix/#post-4763608)
 * Status: resolved