Error when placing Mailchimp form

0

When I try to put this form in the layout of my blog in blogger I get these errors:

  
  • XML parsing error, line 3958, column 240: Attribute name "novalidate" associated with an element type "form" must be followed by the '=' character
  •   
  • XML parsing error, line 3961, column 109: Attribute name "required" associated with an element type "input" must be followed by the '=' character.
  •   

    If I put it somewhere else than the layout, it accepts it.

    The code is as follows:

    <!-- Begin MailChimp Signup Form -->
    <link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    	#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:100%;}
    	/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
    	   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
    </style>
    <div id="mc_embed_signup">
    <form action="//exortechnologies.us16.list-manage.com/subscribe/post?u=a86e4e21e1cb9eae9c50f81eb&amp;id=548054fc89" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
        <div id="mc_embed_signup_scroll">
    	<label for="mce-EMAIL">Suscríbete y recibe primero que nadie nuestras publicaciones ¡Es GRATIS!</label>
    	<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
        <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
        <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a86e4e21e1cb9eae9c50f81eb_548054fc89" tabindex="-1" value=""></div>
        <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
        </div>
    </form>
    </div>
    
    <!--End mc_embed_signup-->
        
    asked by NemeziX 19.09.2017 в 23:33
    source

    1 answer

    0

    The attributes that you add to the form and the input must have values, write the attribute or not write it, it's not what makes it active you have to give it true or false according to what you want, not to put the attribute novalidate and required, their default values would be taken. To establish it you have to put  or "false" according to what you want to establish

    the same error tells you you have to give value to those attributes as you do with others, if not, do not write those attributes and take their default value

        
    answered by 20.09.2017 в 01:26