Image and video


#1

if I don’t specify the width and height for my video what ll be the width and height for the video?
can I specify width and height for my images also?


#2

Hi @sangeethasp,

You can specify width and height for both video and images, as they’re part of the listed attributes of video and img elements. Read below the attributes of width and height in:

It is recommended to specify the width and height as per explanation in:
(Find the Width and Height section)

The same logic applies to video tag as well. Without the specified values, the browser cannot reserve the appropriate space when the page loads.


For more reading: