Learn the basics of HTML in this fun and engaging video tutorial. CHAPTERS: Now Playing 1. Introduction 2. HTML Editors 1:27 3. HTML Elements 2:16 4. HTML Attributes 2:16 5. HTML Headings 1:49 6. HTML Paragraphs 1:01 7. HTML Styles ...
<!DOCTYPE html> <html> <body> <videowidth="320"height="240"controls> <sourcesrc="movie.mp4"type="video/mp4"> <sourcesrc="movie.ogg"type="video/ogg"> Your browser does not support the video tag. </video> </body>
filename=tryhtml_headers <br> Use the <br /> tag if you want a line break (a new line) without starting a new paragraph. The <br /> element is an empty HTML element. It has no end tag. Even if <br> works in all browsers, writing <br /> instead is more future proof. http:...
HTMLTry HTMLRun ❯ Get your own website Result Size: 785 x 1414 <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> ...
Video duration Property❮ Video ObjectExampleGet the length of a video:var x = document.getElementById("myVideo").duration; Try it Yourself » DescriptionThe duration property returns the length of a video, in seconds.Note: Different browsers return different values. In the example above, ...
<!DOCTYPE html> <html> <body> <h1>The video autoplay attribute</h1> <video width="320" height="240" controls autoplay> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> </body> </html> ...
DOCTYPE html> <html> <body> <video width="320" height="240" controls autoplay> <source src="movie.ogg" type="video/ogg"> <source src="movie.mp4" type="video/mp4"> <object data="movie.mp4" width="320" height="240"> <embed width="320" height="240" src="movie.swf"> </object...
<!DOCTYPE html> <html> <body> <h1>The video element</h1> <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> </body> </html> ...
Tryit: YouTube in an iframeRun ❯ Get your own website Result Size: 785 x 1414 <!DOCTYPE html> <html> <body> <iframe width="420" height="345" src="https://www.youtube.com/embed/tgbNymZ7vqY"> </iframe> </body> </html> ...
❮ HTML Audio/Video DOM ReferenceExampleSet video to slow motion by default:let vid = document.getElementById("myVideo");vid.defaultPlaybackRate = 0.5; Try it Yourself » Definition and UsageThe defaultPlaybackRate property sets or returns the default playback speed of the audio/video....