5 Replies Latest reply on Sep 10, 2015 2:59 PM by Jonathan Ankiewicz

    <a> element not allowed to wrap <p>?

    Jamie Rodger

      In an email template I have created a button in html and am looking to hyperlink the whole item, not just the text inside. Marketo seems to hate this line of code:

       

      <a href="#" style="text-decoration:none">

                 <p style="background-color:#00673E; text-align:center; padding: 10px 10px 10px 10px; margin: 10px 10px 10px 10px;color: #FFFFFF;   font-family: Merienda, 'Times New Roman', serif, sans-serif; ">

                          Student Success

                    </p>

      </a>

       

      I get this error:

      line 582 column 1 - Warning: missing </a> before <p>

      line 584 column 1 - Warning: discarding unexpected </a>

       

      Is there a particular reason Marketo refuses to allow the <a> element to wrap the <p>? It works in other clients and in browser, it even shows the hyperlink in the template preview. Marketo keeps stripping it when a sample is sent though.