How to adjust the width and height of a video___?????! | Sololearn: Learn to code for FREE!
+ 19

How to adjust the width and height of a video___?????!

10th Apr 2019, 11:09 AM
Keerthana - avatar
11 Réponses
+ 17
Always specify both the height and width attributes for videos. If height and width are set, the space required for the video is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the video, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the video loads). : Do not rescale video with the height and width attributes! Downsizing a large video with the height and width attributes forces a user to download the original video (even if it looks small on the page). The correct way to rescale a video is with a program, before using it on a page. <video width="320"height="240" controls>   <source src="movie.mp4" type="video/mp4">   <source src="movie.ogg" type="video/ogg">   Your browser does not support the video tag. </video>
10th Apr 2019, 11:14 AM
Keerthana - avatar
18th Apr 2019, 3:28 PM
Calvi’≤ - avatar
+ 4
Use the w and h attributes
22nd Apr 2019, 1:48 PM
Adamu Furah Suleiman
Adamu Furah Suleiman - avatar
+ 3
(Some browsers don’t support this code and this is not html5.) Here is the code: <embed src="(Your video file).mp4" width="(Your width)" height="(Your width"> </embed>
12th Apr 2019, 1:45 AM
artassavapokee - avatar
+ 3
Chioma Abonyi Microsoft word
12th Apr 2019, 6:06 AM
artassavapokee - avatar
+ 3
Using the width and height attribute in the video opening tag
12th Apr 2019, 10:25 AM
TiNK¬ģ - avatar
+ 2
What program is then used to rescale?
10th Apr 2019, 3:01 PM
Chioma Paul
Chioma Paul - avatar
+ 2
11th Apr 2019, 2:17 PM
Auwal Khan
Auwal Khan - avatar
+ 2
You can add the width and height attributes in opening tag of the video. It works.
11th Apr 2019, 10:42 PM
Farhan Ullah
Farhan Ullah - avatar
+ 2
U can use embed code for online videos embed code has width and height adjustable and for offline u can width and height attribute
11th Apr 2019, 11:55 PM
Daniyal Ahmed
Daniyal Ahmed - avatar
+ 2
uhh no
13th Apr 2019, 10:53 PM
Monica Cain
Monica Cain - avatar