Both audio and video elements can have controls, autoplay and loop attributes. This example shows a video element with controls, autoplay and loop set, which will cause the video to replay after finishing playing initially. There are three main supported video formats for the <video> element: MP4, WebM, and OGG.