If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
HTML में video को use करने के लिए <video> tag का use किया जाता है। HTML निम्न तरह की video files को support करता है।
mp4
webM
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 किया जा सके।
Attribute Name | Uses |
controls | controls 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 होता है। |
Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.
Get connected with me. :) LinkedIn Twitter Instagram Facebook