Computer Science, asked by ssa8kt1idharamiiiiii, 1 year ago

Hello! I was asked to design a web and I'm struggling with video coding, what are the codes for inserting a video?

Answers

Answered by siddharthbhat1
2

Hey,

The video tag is used in html to insert a video. make sure you design your page before you insert this tag. If you want the video in the center then you can use the <center> tag. Else you can also use the other aligning tags

Heres some basic video code

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">

</video>

You can change the with and height of the frame using "witdth" and "height" attributes.

the controls attribute allows you to have the pause, play and fast forward buttons.

You can also keep an attribute called autoplay which when the user scrolls down to the video, it automatically starts playing.

Don't forget to mention the source of the video tho. xD

Hope it helps


Similar questions