When embedding a Dash asset on the web using our embeddable links feature, you may wish to include an alt tag for improved SEO and accessibility.
Once you have manually generated the HTML embed code in Dash, you can manually add an alt tag to the code before adding it to your website/CMS/etc.
An HTML embed link looks like this:
<img src="https://link.assetfile.io/6t8MjtnD7I1dULecye6gjg/feey-fvXmI2fu-yE-unsplash.jpg">
An embed link which includes an alt tag looks like this:
<img alt="Mini Monstera Plant" src="https://link.assetfile.io/6t8MjtnD7I1dULecye6gjg/feey-fvXmI2fu-yE-unsplash.jpg">
Note the additional alt attribute included in the code
How to add an alt tag to your embedded asset
Generate an embeddable link as normal
Copy the "HTML Embed" code from the embed menu
Paste the code into your desired location, and add alt="..." after the "<img " text, as per the example above
Save the code in your destination application