It is currently impossible of the standard user to set the ALT attribute on mktoImg elements in landing pages. You will have to use workarounds that need to be anticipated in the Guided Landing Page template you are using.
To create a mktoImg element in an LP template, you can use either a <div> or an <img> tag in the template (see the doc here Create a Guided Landing Page Template - Marketo Docs - Product Docs )
All of this is not very usable, though, so I also have added the idea of an easy alt setting here :
Anything I have missed? Any other idea to workaround this limitation?
-Greg
Greg,
Have you tried the following?
<div id="header-image" class="mktoImg" mktoName="Header Image" alt="${heroAltText}">
<img src="../image.jpg" >
</div>
This works fine when Marketo generates the image tag with it's attributes. Just make sure you include the declaration in the head of the HTML like:
<meta class="mktoString" id="heroAltText" mktoName="Hero Alt Text" default="Header Image" allowHtml="false">