Promptary
Frontend ยท Media

Media developer concepts

Learn 36 Media concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.

Images & rendering

Content image

An informative image that contributes meaning to the surrounding content.

Also known as
Informative image, Editorial image, Content graphic
AI prompt
Add a responsive content image using semantic img markup, meaningful concise alternative text that communicates its purpose, explicit width and height to prevent layout shift, and dimensions appropriate for the rendered slot.

Decorative image

A visual flourish that adds atmosphere without conveying essential information.

Also known as
Ornamental image, Background decoration, Non-content image
AI prompt
Implement a purely decorative image so assistive technology ignores it, using an empty alt attribute for img or CSS background imagery when appropriate. Ensure no required meaning, label or action depends on the decoration.

Responsive image

An image that lets the browser choose an efficient source for the display size and density.

Also known as
Srcset image, Resolution switching, Adaptive image
AI prompt
Create a responsive image using srcset and sizes with correctly sized source candidates, a dependable src fallback, meaningful alt text, explicit dimensions and max-width behavior that prevents overflow and unnecessary mobile downloads.

Art-directed image

A picture whose crop or composition changes to preserve the subject across layouts.

Also known as
Picture element, Responsive crop, Art direction
AI prompt
Use the picture element for art direction, supplying a close portrait crop on narrow screens and a wider composition on desktop. Keep the same subject and meaning, include an img fallback with accurate alt text, and avoid media-query duplication in sizes.

Media aspect ratio

A reserved width-to-height proportion that keeps media stable while it loads.

Also known as
Aspect-ratio box, Media ratio, Intrinsic ratio
AI prompt
Create a reusable media frame with CSS aspect-ratio, responsive width and overflow handling. Preserve the intended composition, reserve space before the asset loads, and provide sensible behavior when the source has a different intrinsic ratio.

Object-fit image

An image fitted inside a fixed frame using cover, contain or another sizing mode.

Also known as
Image fit, Cover image, Contained image
AI prompt
Place an image in a fixed-ratio card using object-fit and object-position. Let users compare cover and contain, preserve the focal point, avoid distorting the source and keep important content from being cropped unexpectedly.

Blur-up placeholder

A lightweight blurred preview shown while the full-quality image loads.

Also known as
Blur placeholder, LQIP, Progressive image
AI prompt
Create a blur-up image placeholder using a tiny lightweight preview that occupies the final dimensions, transitions to the decoded full image without layout shift, respects reduced motion and never replaces useful loading or error feedback.

Lazy-loaded image

An off-screen image deferred until it approaches the viewport to reduce initial work.

Also known as
Deferred image, Loading lazy, On-demand image
AI prompt
Lazy-load below-the-fold images with the native loading attribute, explicit dimensions and useful alt text. Keep above-the-fold hero media eager, avoid hiding content from search or assistive technology, and handle loading failure visibly.

Vector image

A resolution-independent graphic suited to icons, diagrams, logos and simple artwork.

Also known as
SVG image, Scalable graphic, Vector artwork
AI prompt
Add a scalable SVG illustration with a viewBox, responsive dimensions and an accessible name only when it conveys meaning. Keep decorative paths hidden from assistive technology, use currentColor where appropriate and avoid embedded unsafe scripts.

Galleries & interaction

Figure with caption

A self-contained media item paired with explanatory or attribution text.

Also known as
Captioned figure, Media caption, Figure block
AI prompt
Create a semantic figure containing an informative image and a concise figcaption with context, date or credit. Keep alternative text focused on the visual meaning and avoid repeating the same wording in both alt text and caption.

Thumbnail strip

A compact row of previews used to choose the main media item.

Also known as
Filmstrip, Thumbnail rail, Preview strip
AI prompt
Create a thumbnail strip controlling a larger image, with labelled buttons, a clearly indicated current thumbnail, arrow-key-friendly navigation, responsive horizontal scrolling and selected state announced without moving focus unexpectedly.

Before-and-after image

Two aligned images compared through a draggable or keyboard-adjustable reveal.

Also known as
Image comparison, Comparison slider, Before-after slider
AI prompt
Create an accessible before-and-after image comparison with aligned sources, visible labels, a native range input, keyboard controls and a textual alternative describing the difference. Do not make dragging the only way to understand the result.

Zoomable image

A detailed image that users can enlarge and inspect without losing orientation.

Also known as
Image zoom, Magnifiable image, Detail viewer
AI prompt
Create a zoomable diagram with visible zoom-in, zoom-out and reset controls, keyboard and touch support, announced zoom level and panning constrained to the media frame. Keep a text alternative available for essential information.

Media lightbox

An enlarged image viewer displayed above the current page context.

Also known as
Image viewer overlay, Gallery modal, Photo lightbox
AI prompt
Create an accessible media lightbox opened from gallery thumbnails, with a labelled dialog, focus containment, Escape close, previous and next controls, image position, caption, background scroll lock and focus restoration to the invoking thumbnail.

Image hotspot

An anchored marker that reveals information about a specific region of an image.

Also known as
Interactive image, Annotation point, Image marker
AI prompt
Add accessible hotspots to a product image using real buttons with clear names, keyboard focus and collision-aware popovers. Keep marker positions stable as the image scales and provide an equivalent text list for spatial annotations.

Audio & video

Video player

A player for synchronized visual and audio media with playback controls.

Also known as
Video playback, Movie player, HTML video
AI prompt
Create an accessible HTML video player with multiple source formats, a poster, native or fully keyboard-operable controls, captions, transcript access, volume independent of system audio and no autoplay with sound.

Audio player

A compact player for spoken audio, music or sound recordings.

Also known as
Sound player, Podcast player, HTML audio
AI prompt
Create an accessible audio player with clear play, pause, seek, duration, volume and playback-rate controls, a downloadable fallback where appropriate, a nearby transcript and status updates that do not interrupt screen-reader users.

Video poster image

A representative still displayed before video playback begins.

Also known as
Video thumbnail, Poster frame, Preview frame
AI prompt
Create a video poster image that accurately represents the content, fits the player ratio and keeps an obvious labelled play button visible at strong contrast. Avoid misleading frames, embedded essential text and autoplay when the poster is clicked unintentionally.

Custom media controls

A branded control set for playback, seeking, volume, captions and display modes.

Also known as
Player controls, Playback controls, Media toolbar
AI prompt
Build custom media controls only when native controls are insufficient. Use labelled buttons and native range inputs, expose play and muted states, preserve full keyboard operation, show focus clearly and keep controls available at every responsive size.

Closed captions

Synchronized text for speech and meaningful non-speech audio that users can toggle.

Also known as
Captions, CC track, Timed captions
AI prompt
Add accurate closed captions to prerecorded video using a WebVTT captions track, including speaker identification and meaningful sounds as well as dialogue. Provide a visible toggle, readable styling and synchronized timing without covering important visuals.

Subtitles

A translated or transcribed dialogue track for viewers who do not understand the spoken language.

Also known as
Language subtitles, Translation track, Subtitle track
AI prompt
Add selectable WebVTT subtitle tracks for English, Malay and Simplified Chinese, with correct language codes, human-reviewed translation, a visible language menu and enough space for longer localized lines without obscuring key content.

Media transcript

A readable text version of spoken, non-speech and important visual information.

Also known as
Audio transcript, Video transcript, Text alternative
AI prompt
Provide an easy-to-find transcript directly below the media, including speakers, speech, meaningful sounds and important visual information. Use semantic headings and timestamps, allow text search and let interactive transcript segments seek the player accessibly.

Audio description

Narration of important visual information for people who cannot see the video adequately.

Also known as
Described video, Video description, Descriptive audio
AI prompt
Offer audio description for important visual content that is not conveyed in the main soundtrack, preferably planned into the script or available as a clearly labelled described version. Preserve playback position when switching versions.

Live stream

Audio or video delivered in real time with current status and audience controls.

Also known as
Live video, Broadcast player, Streaming media
AI prompt
Create an accessible live-stream player with a clear Live status, pause or jump-to-live behavior, keyboard controls, live captions, a text alternative when required, resilient reconnect states and no unexpected autoplay with sound.

Embedded & rich media

Embedded video

A video hosted by another service and displayed inside the current page.

Also known as
Video embed, Hosted player, External video
AI prompt
Embed a third-party video responsively with a descriptive iframe title, constrained permissions, lazy loading below the fold and a privacy-enhanced or consent-aware mode. Ensure captions and transcript access remain available outside the embed.

Iframe embed

An external document or application isolated within an inline frame.

Also known as
Inline frame, External embed, Embedded page
AI prompt
Create a responsive iframe embed with a descriptive title, sandbox and allow attributes limited to required capabilities, a stable aspect ratio, loading state and fallback link. Avoid trapping keyboard focus or resizing unexpectedly.

Embedded map

An interactive geographic view paired with an accessible location alternative.

Also known as
Map widget, Location map, Interactive map
AI prompt
Embed an interactive map with a descriptive title, keyboard-accessible controls, restrained initial zoom and consent-aware loading. Provide the full address, directions link and key location information outside the map for non-visual users.

Social media embed

A third-party post presented with attribution, media and engagement context.

Also known as
Embedded post, Social card, Post embed
AI prompt
Create a consent-aware social media embed that shows a lightweight local preview first, clearly identifies the source, loads third-party scripts only on request, preserves a direct link and provides equivalent text for unavailable or deleted posts.

3D model viewer

An interactive viewport for rotating, zooming and inspecting a three-dimensional object.

Also known as
3D viewer, Product model, Interactive model
AI prompt
Create a progressively enhanced 3D product viewer with labelled rotate, zoom and reset controls, keyboard and touch support, a static poster fallback, reduced-motion behavior and a text description of the object and its important details.

Interactive canvas

A script-drawn bitmap surface used for visualizations, editing or real-time graphics.

Also known as
Canvas graphic, Drawing surface, HTML canvas
AI prompt
Create an interactive canvas visualization with resolution-aware rendering, responsive dimensions and equivalent semantic HTML data or controls. Do not place essential content only on canvas, and support keyboard input plus high-contrast display modes.

Interactive SVG

A scalable vector graphic whose regions can respond to focus, pointer or data changes.

Also known as
SVG diagram, Vector interaction, Interactive graphic
AI prompt
Create an interactive inline SVG diagram with a viewBox, scalable layout, labelled focusable controls for interactive regions and semantic HTML alternatives for the data. Use CSS-driven states and ensure focus order follows the visual story.

Audio waveform

A visual representation of audio amplitude often paired with seeking and editing.

Also known as
Waveform player, Audio visualization, Sound wave
AI prompt
Create an audio waveform that visualizes playback without becoming the only seek control. Pair it with a labelled native range input, elapsed and total time, keyboard seeking, strong played-state contrast and a transcript for spoken content.

Media playlist

An ordered collection of audio or video items connected to one player.

Also known as
Episode queue, Track list, Video playlist
AI prompt
Create an accessible media playlist with semantic list markup, clear current-item state, duration and completion metadata, keyboard-selectable rows, optional next-item autoplay that users control and preserved playback state when switching tracks.