# media

Source: https://zotonic.com/docs/1374/media

URI: https://zotonic.com/id/1374

Language: en



::: {.aside}
See also

- [Media](/id/doc_developerguide_media#guide-media) developer guide.
- [Media classes](/id/doc_developerguide_media#guide-media-classes) for options that are only available in mediaclass files.
- <a href="/id/doc_template_tag_tag_image" class="doc-reference doc-reference-tag"><code>tag#image</code></a>, <a href="/id/doc_template_tag_tag_image_url" class="doc-reference doc-reference-tag"><code>tag#image_url</code></a> and <a href="/id/doc_template_tag_tag_image_data_url" class="doc-reference doc-reference-tag"><code>tag#image_data_url</code></a> tags.
:::

Show embed, video or audio media.

The `{% media %}` tag is similar to <a href="/id/doc_template_tag_tag_image" class="doc-reference doc-reference-tag"><code>tag#image</code></a>. It accepts the same arguments but where `{% image %}` is guaranteed to give a still image, `{% media %}` can also generate embed, video or audio elements.

The `{% media %}` tag is not implemented in the core of Zotonic. It depends on modules implementing the tag which arguments and media formats are accepted.

An example of a module using `{% media %}` is <a href="/id/doc_module_mod_video_embed" class="doc-reference doc-reference-module"><code>module#mod_video_embed</code></a> which enables the use of embed code from sites as youtube and vimeo. Mod\_video\_embed will echo the embed code for a `{% media %}` tag and output a still image for an `{% image %}` tag.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1374?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1374?language=en>)
