Posts

Showing posts with the label html <video> tag

how to use the video tag in html

Image
how to use the video tag in html video tag  The HTML 5 <video> tag  use to embedded video on an HTML document. Browsers dont support the same video format so you  provide multiple video formats for correct rendering. A path to the video file is nested inside <source> tag, or src attribute. You can also include an alternate text in the <video>tag, that will be displayed in case if the browser doesn't support the video format. how to use the video tag in html Example    <! DOCTYPE html > < html > < head >   < title > Title of the document </ title >   < style >   video { width : 300px ; height : 200px ; border : 1px solid #666 ; } </ style > </ head > < body > < video controls muted >   < source src = "movie.mp4" type = "video/mp4" >   < source src = "movie.ogg" type = "video/ogg" > </ video >   < P > Your browser does not...