Videos

You can insert videos from YouTube on your pages. The syntax is exactly same as for images, but instead of video link you should insert YouTube link.

You can provide additional parameters after the video address using the following format:

![video description](video-url){parameters}

Parameter

Type

Description

width

integer

width in pixels

height

integer

height in pixels

ratio

string

aspect ratio as width to height, for example 16/9

muted

boolean

mute video by default

autoplay

boolean

play video when page loads

controls

boolean

display controls for the video

loop

boolean

loop video

Size

You can specify the size of the video using an additional option after the video address. You can either explicitly set width and height parameters or specify video aspect ratio using ratio, so we can correctly calculate video height based on width.

Caption

You can add a caption to an video by adding a special block around the video.

Looping

Insert a video which plays in a loop to automatically restart video after it ends. Additionally, you can specify: muted, autoplay and controls parameters.

Videos - Eolymp