Title: Validation error
Last modified: August 22, 2016

---

# Validation error

 *  Resolved [Ismael Latorre](https://wordpress.org/support/users/miguelripoll/)
 * (@miguelripoll)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/validation-error-29/)
 * This plugin, which otherwise is great, does throw a W3C validation error:
 * Bad value for attribute action on element form: Must be non-empty.
 * `<form action="" method="post">`
 * [https://wordpress.org/plugins/simple-basic-contact-form/](https://wordpress.org/plugins/simple-basic-contact-form/)

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

 *  [steveftr](https://wordpress.org/support/users/steveftr/)
 * (@steveftr)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/validation-error-29/#post-5394324)
 * In addition, this plugin, which I likewise think is great, raises another error
   using the W3C validator. Simple Basic Contact Form places a style element within
   the body element of the webpage. Style elements are valid only in the head element
   of a webpage; in the body, all style declarations are to be specified in the 
   optional style attribute of a valid body element.
 * For example, the following, which Simple Basic Contact Form does, is invalid–
 *     ```
       <div id="simple-contact-form>
          (the form fieldsets, labels and inputs)
       </div>
   
       <style>
          #simple-contact-form fieldset {
             width: 100%; overflow: hidden;
          }
       </style>
       ```
   
 * The style declarations should instead be specified in the “style” attribute of
   a particular HTML element, like this–
 *     ```
       <div id="simple-contact-form>
       (...)
       <fieldset style="width: 100%; overflow: hidden;"> (...) </fieldset>
       (...)
       </div>
       ```
   
 *  [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/validation-error-29/#post-5394361)
 * I appreciate the feedback, but there is no harm to having an empty action attribute,
   nor is there any harm in including style tags within the body. It may not be “
   proper” but it’s a very common and useful practice. Plus it makes it easy to 
   enable users to add/edit their own CSS for the form via the plugin settings. 
   In this case the pros outweigh the cons.

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

The topic ‘Validation error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-basic-contact-form_d8b8d8.
   svg)
 * [Simple Basic Contact Form](https://wordpress.org/plugins/simple-basic-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-basic-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-basic-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-basic-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-basic-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-basic-contact-form/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/validation-error-29/#post-5394361)
 * Status: resolved