Images and embeds
Add images, videos, and iframes
Images
Add images to provide visual context, examples, or decoration to your documentation.
Basic image syntax
Use Markdown syntax to add images to your documentation:
Always include descriptive alt text to improve accessibility and SEO. The alt text should clearly describe what the image shows.
Image files must be less than 20MB. For larger files, host them on a CDN service like Amazon S3 or Cloudinary.
HTML image embeds
For more control over image display, use HTML <img>
tags:
Disable zoom functionality
To disable the default zoom on click for images, add the noZoom
property:
Link images
To make an image a clickable link, wrap the image in an anchor tag and add the noZoom
property:
Images within anchor tags automatically display a pointer cursor to indicate they are clickable.
Light and dark mode images
To display different images for light and dark themes, use Tailwind CSS classes:
Videos
Mintlify supports HTML tags in Markdown, giving you flexibility to create rich content.
Always include fallback text content within video elements for browsers that don’t support video playback.
YouTube embeds
Embed YouTube videos using iframe elements:
Self-hosted videos
Use the HTML <video>
element for self-hosted video content:
Autoplay videos
To autoplay a video, use:
When using JSX syntax, write double-word attributes in camelCase: autoPlay
, playsInline
, allowFullScreen
.
iframes
Embed external content using iframe elements:
Related resources
Frame component reference
Learn how to use the Frame component for presenting images.