+ 2
How to add video and image to code playground in html
In Html
7 Réponses
+ 4
In
HTML:
<img src="">
In
CSS:
element
{
Background-image: url("")
}
Note: Between " " put URL of the image.
+ 4
Meenakshi Gaur Go through this👇
https://www.sololearn.com/learn/HTML/2194/
+ 2
Use the <video> tag and <img> tag
+ 1
And how to add video
+ 1
<video src=""></video>
+ 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>