Embed sound, video and captioned illustrations without any plugin.
Open this lesson in KodokonHTML plays audio and video natively: no external player needed. Real-world use cases: a podcast episode on a blog, a product demo on a landing page, a tutorial embedded in documentation. Let's see how to do it properly.
<video controls width="640" poster="preview.jpg">
<source src="demo.webm" type="video/webm">
<source src="demo.mp4" type="video/mp4">
<track src="subs-fr.vtt" kind="subtitles"
srclang="fr" label="French" default>
Your browser doesn't support HTML5 video.
</video>Three professional takeaways. The source elements are tried in order: the browser plays the first one it can decode. The poster attribute shows a placeholder image before playback. Finally, track adds subtitles in WebVTT format: essential for accessibility and much appreciated for silent viewing.
<audio controls preload="metadata">
<source src="podcast-ep12.mp3" type="audio/mpeg">
<a href="podcast-ep12.mp3">Download the episode</a>
</audio>To illustrate content, figure pairs a media element with its caption via figcaption. And not just images: a chart, a code snippet or a quote are also good candidates. The caption is linked to the figure programmatically, something a plain paragraph below the image can't offer.
<figure>
<img src="chart-sales.png"
alt="Sales up 12% in Q2 2026">
<figcaption>
Sales trend, second quarter of 2026.
</figcaption>
</figure>