Posts

Showing posts with the label youtube

How to use controls attribute with < video > tag in HTML for YouTube ? with example

How to use controls attribute with < video > tag in HTML for YouTube ? with example   Add controls = 0 to not display controls in the  video player you can also use with your YouTube video but  not display When add Value 0 in controls attribute meaning  Player controls does not display. When add Value 1 in controls attribute meaning     (default): Player controls display. Value = 0 Example   <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/PgbKywZ7vqQ? controls =0"> </iframe> </body> Value = 1 Example   <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/PgbKywZ7vqQ? controls =1"> </iframe> </body>

How to use loop attribute with < video > tag in HTML for YouTube ? with example

 How to use loop attribute with < video > tag in HTML for youtube ? with example  When you Add loop=1 meaning to let your  video loop forever. When we add Value 0 (default) meaning   The video will play only once. When we add Value   1 meaning  The video will  loop (forever). Video Tag YouTube - Loop Example  <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/YgbiysZ7vtY? playlist=PgboytZ4vwY &  loop=1"> </body> </iframe>

How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example

 How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example  When you add or use autoplay attribute for your website development by adding value autoplay =1 to the YouTube URL.then video is automatically started when any unknown or unique visitor are visiting in your website . However, automatically starting a video is annoying for your visitors <html> <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY? autoplay=1&mute=1 "> </iframe> </body> </html> When you apply both attribute with YouTube URL then Here is the effect after giving value to both of the attribute mute and Autoplay . Add mute =1 after autoplay =1 to let your video start playing automatically (but muted). Example  <iframe width="560" height="315"  src="https://www.youtube.com/embed/2jg1bJQaYjg" autoplay=1 & mute=1 "   title="You...

html < video > tag youtube src | html5 < video > tag youtube

 HTML video tag youtube src | HTML5 video tag youtube Step 1  : Upload the video to YouTube Step 2 :   Take a note of the video id Step 3  :  Define an <iframe> element in your web page Step 4 :   Let the src attribute point to the video URL Steps 5: Use the width and height attributes  to specify the dimension of the player Step 6: Add any other parameters to the URL Example :  <html> <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY"> </iframe> </body> </html>