An SVG image inside a home link
A self-contained SVG can use an image element. Set width and height to match its ratio. If the link already has an accessible name, the decorative image can have empty alternative text. Replace the illustrative paths below with your own files.
<a href="/en/" aria-label="Brand name, home">
<img src="/logo.svg" alt="" width="160" height="64">
</a>Inline the SVG if you need to control its paths from the page. Parent CSS cannot reach inside an SVG loaded as an image.
Video with controls and a poster
Keep playback controls and a still poster. Loading can wait until the user needs the video. These paths are examples to replace.
<video controls playsinline preload="none"
poster="/logo-poster.webp" width="960" height="540">
<source src="/logo.mp4" type="video/mp4">
<a href="/logo.mp4">Download the demonstration</a>
</video>A poster does not replace error handling. Verify file availability and browser playback, and avoid starting every gallery video at once.
Lottie with a compatible player
Install a suitable player, load the asset and retain a controller for play, pause and cleanup. Use the documentation for the exact player and version; method names differ. Show a still fallback for loading errors and reduced motion. Decorative animation should never prevent navigation when its player fails.
WordPress, Shopify and other CMSs
Identify blocks or sections that support images, video or custom content. Theme settings, account permissions and file policies can limit SVG or JSON uploads. Preview the theme and test every page using the shared header. The WordPress Lottie guide covers the main integration checks.
Test the asset inside the real page at its actual size. An isolated preview will not reveal layout shifts or style conflicts.
Sources and further reading
Official resources checked on 22 November 2026. Interfaces and access conditions can change.
