+ 2

How to add video and image to code playground in html

In Html

2nd Sep 2020, 2:59 PM
Prasoon Gaur
Prasoon Gaur - avatar
7 Réponses
+ 4
In HTML: <img src=""> In CSS: element { Background-image: url("") } Note: Between " " put URL of the image.
2nd Sep 2020, 3:04 PM
Aditya Raj
Aditya Raj - avatar
2nd Sep 2020, 3:07 PM
Aditya Raj
Aditya Raj - avatar
+ 2
Use the <video> tag and <img> tag
2nd Sep 2020, 3:03 PM
Scorpionking_2 [Inactive]
Scorpionking_2 [Inactive] - avatar
+ 1
And how to add video
2nd Sep 2020, 3:05 PM
Prasoon Gaur
Prasoon Gaur - avatar
+ 1
<video src=""></video>
2nd Sep 2020, 3:07 PM
Scorpionking_2 [Inactive]
Scorpionking_2 [Inactive] - avatar
+ 1
The controls attribute adds video controls, like play, pause, and volume. It is a good idea to always include width and height attributes. If height and width are not set, the page might flicker while the video loads. The <source> element allows you to specify alternative video files which the browser may choose from. The browser will use the first recognized format. The text between the <video> and </video> tags will only be displayed in browsers that do not support the <video> element. exp: code <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>
2nd Sep 2020, 3:11 PM
vamsi gamer
vamsi gamer - avatar