Learning coding means GreatToCode Be more than a Coder ! Greattocode , Join GreatToCode Community,1000+ Students Trusted On Us .If You want to learn coding, Then GreatToCode Help You.No matter what It Takes !


CODE YOUR WAY TO A MORE FULFILLING And HIGHER PAYING CAREER IN TECH, START CODING FOR FREE Camp With GreatToCode - Join the Thousands learning to code with GreatToCode
Interactive online coding classes for at-home learning with GreatToCode . Try ₹Free Per Month Coding Classes With The Top Teachers . Html Media

Html Media

Become More Then A coder | Learn & Start Coding Now. HTML Media Guide

HTML Media Guide

HTML Media Overview

HTML provides several elements for embedding and controlling media, including video, audio, and external plugins. This guide will cover the basics of these elements and how to use them effectively.

HTML Video

The <video> element is used to embed video content in a web page. It supports various video formats and includes controls for play, pause, and volume.

<video width="640" height="360" controls>

    <source src="video.mp4" type="video/mp4">

    <source src="video.ogg" type="video/ogg">

    Your browser does not support the video tag.

</video>

Example of embedding a video:

HTML Audio

The <audio> element is used to embed audio content. It also supports multiple formats and includes controls for playback.

<audio controls>

    <source src="audio.mp3" type="audio/mpeg">

    <source src="audio.ogg" type="audio/ogg">

    Your browser does not support the audio element.

</audio>

Example of embedding audio:

HTML Plug-Ins

HTML no longer widely uses plugins like Flash, but the <embed> and <object> elements are used to embed external resources:

<embed src="plugin.swf" width="400" height="300">

<object data="plugin.swf" width="400" height="300">

    <param name="movie" value="plugin.swf">

    Your browser does not support the object element.

</object>

Example of embedding a plugin (e.g., Flash content):

Your browser does not support the object element.

Embedding YouTube Videos

To embed YouTube videos, use the <iframe> element. This allows you to display videos directly from YouTube on your page.

<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>

Example of embedding a YouTube video:

© 2024 GreatToCode. All rights reserved.

Post a Comment

0 Comments

•Give The opportunity to your child with GreatToCode Kid's • Online Coding Classes for Your Kid • Introduce Your kid To the world's of coding
•Fuel You Career with our 100+ Hiring Partners, Advance Your Career in Tech with GreatToCode. •Join The Largest Tech and coding Community and Fast Forward Your career with GreatToCode. •10000+ Learner's+ 90 % placement Guarantee. • Learning Coding is Better with the GreatToCode community .
•Greattocode Kid's •GreatToCode Career •GreatToCode Interview •GreatToCode Professional •GreatToCode for schools •GreatToCode For colleges •GreatToCods For Businesses.
Are you ready to join the millions of people learning to code? GreatToCode Pass is your one-stop-shop to get access to 1000+ courses, top-notch support, and successful job placement. What are you waiting for? Sign up now and get your future in motion with GreatToCode Pass.