AnsweredAssumed Answered

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

Question asked by Jamie Rodger on Jul 24, 2015
Latest reply on Sep 10, 2015 by c3fe9112321230d5eee5edffd64ff2ec9f973314

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.

Outcomes