i

Learn HTML and CSS in 10 Days

Adding Videos

The element works in the same fashion as that of the element. It has got the same syntax as that of the audio element. Their attributes are also the same (src, preload, controls, loop, and autoplay). Here one needs to give the dimensions of their video (width and height) on the web page.

Poster Attribute

The ‘poster’ attribute in the element offers the developer to specify an image in the form of a URL. It is shown before the video is played.

Video Fallbacks

Like the  element, video fallbacks are also important.