Browse documentation
Embedded content
audio, canvas, iframe, img, svg, and video get a small set of
consistency fixes, most importantly responsive images by default.
Show HTML
<figure>
<svg viewBox="0 0 200 80" width="100%" height="80" role="img" aria-label="Placeholder graphic">
<rect width="200" height="80" rx="8" fill="currentColor" opacity="0.12"></rect>
<text x="100" y="45" text-anchor="middle" fill="currentColor" font-size="14">svg, responsive by default</text>
</svg>
<figcaption>Images and inline SVG scale to their container automatically.</figcaption>
</figure>
<img src="…" alt="…">
<svg viewBox="0 0 200 80" role="img" aria-label="…">…</svg>
Behavior #
imgismax-width: 100%; height: auto, responsive without a class, and never overflows its container. An explicitheightattribute given as the only dimension is respected; with both attributes present,height: autopreserves the attribute-derived aspect ratio on downscale.audio,canvas,iframe,img,svg,videoare vertically middle aligned, which avoids the small inline baseline gap browsers add by default.iframehas no border by default.svgwithout an explicitfillinheritscurrentColor, so an icon SVG follows the surrounding text color unless it sets its own fill.