Title: Valid HTML output
Last modified: August 21, 2016

---

# Valid HTML output

 *  [Kristijan Korman](https://wordpress.org/support/users/kristijan-korman/)
 * (@kristijan-korman)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html-output/)
 * This Mailchimp plugin is giving me error when validating my website. I want it
   to be valid but Mailchimp plugin is giving me this error:
 *     ```
       Line 342, Column 7: Element style is missing required attribute scoped.
       <style>
       Attributes for element style:
       Global attributes
       media
       type
       scoped
       Also, the title attribute has special semantics on this element.
       ```
   
 * I found out that on line 342 is this:
 *     ```
       <style>
       	.widget_mailchimpsf_widget .widget-title {
       		line-height: 1.4em;
       		margin-bottom: 0.75em;
       .
       .
       .
       .
       </style>
       ```
   
 * How can i fix this? I can not edit the code because this is what the plugin has
   made. All that i did was put this in footer:
 *     ```
       <?php mailchimpSF_signup_form(); ?>
       ```
   
 * [https://wordpress.org/plugins/mailchimp/](https://wordpress.org/plugins/mailchimp/)

Viewing 1 replies (of 1 total)

 *  [mc_dominic](https://wordpress.org/support/users/mc_dominic/)
 * (@mc_dominic)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html-output/#post-4750206)
 * Hi Kristijan,
 * Thanks for writing in today. I can definitely understand the concern here. To
   style the form, we will add a <style> tag above the form in your sites code.
   
   Most validators will mark a <style> element in the <body> tag as invalid. But
   validators can be strict at times and a <style> element in the body will work
   in the large majority of browsers.
 * If you would like to remove that <style> tag, the plugin files will have to be
   modified. Below are the steps to do that.
 * In the WordPress Admin area, go to Plugins > Editor.
    Select the MailChimp plugin
   and click on the mailchimp_widget.php Find the <style> section and remove it.
   The css in this section could be added to your site’s css or the <head> of your
   site.
 * Let us know if you have any other questions.
 * -mc_d

Viewing 1 replies (of 1 total)

The topic ‘Valid HTML output’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp/assets/icon.svg?rev=3156997)
 * [Mailchimp List Subscribe Form](https://wordpress.org/plugins/mailchimp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [output](https://wordpress.org/support/topic-tag/output/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)

 * 1 reply
 * 2 participants
 * Last reply from: [mc_dominic](https://wordpress.org/support/users/mc_dominic/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/valid-html-output/#post-4750206)
 * Status: not resolved