# Moving images (video)

If the URL given to images and figures hints to a video format supported by HTML 5 (MIME types 'video/mp4', 'video/webm', or 'video/ogg'), the HTML5 writer will place it in a video element.

left-aligned test video

A class option value "controls" tells the browser to display controls for video playback.

It is a good idea to include width and height attributes. If height and width are not set, the page might flicker while the video loads. According to the HTML5 spec, hight and width must be specified as pixel values.

../../../docs/user/rst/images/pens.mp4

Simple test video in a centered figure

A video like this testvideo can be included inline via substitution.