HTML Video In Hindi

📔 : HTML 🔗

HTML में video को use करने के लिए <video> tag का use किया जाता है। HTML निम्न तरह की video files को support करता है।

  1. mp4

  2. webM

  3. ogg

इनमे से MP4 format YouTube द्वारा recommended है।

<!DOCTYPE html>
<html> <head> <meta charset="utf-8"> <title>HTML Video</title> </head> <body> <video width="320" height="240" controls> <source src="filename.mp4" type="video/mp4"> </video> </body> </html>

तो कुछ इस तरह से web pages पर video files को use करते हैं। हालाँकि <video> tag के कई useful attributes भी होते हैं video file को और अच्छे control किया जा सके।

HTML video Attributes

Attribute NameUses
controlscontrols attribute का use play / pause action button के लिए किया जाता है , जैसा कि आप ऊपर दिए गए example में देख सकते हैं।
autoplayइस attribute का use करके हम video file को automatically play करने के लिए करते हैं , हमें play button press नहीं करनी पड़ती है। जैसे ही video file ready होती है यह automatically play हो जाती है।
sourceइस attribute में आप video files का path देते हैं जिन्हे हमें web pages में show कराना है , आप एक साथ एक से ज्यादा files की path भी दे सकते हो लेकिन browser सबसे पहले recognized format का use करेगा।
mutedयह video output को mute करने के लिए use होता है।

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers