![]() |
A variety of tags such as the <img> tag, <video> tag, and <audio> tag are available in HTML to include media on your web page. Multimedia combines different media, such as images, audio, and videos. Users will have a better experience when multimedia is embedded into HTML. Early web browsers only supported text and were limited to a single font in a single color. However, later browsers introduced support for various fonts, images, and multimedia elements. Note: Provide multiple video formats such as .wav, .mp3, .mp4, .mpg, .wmv, etc. Syntax:// Embedding image Table of Content Embedding ImageThe <img> tag is self-closing because they don’t have a closing tag. The src attribute is the required attributes in the <img> tag, it helps to specify the source URL. The alt attribute provides the alternative text to an image. If the image does not load up then this message will be displayed. Example: Illustration of embedding image in HTML .
Output: ![]() Output Screen Embedding VideoThe <video> tag helps us to embed the required video into the webpage. The width and height properties determine the size of the video. The control property adds playback control like play, pause, volume. etc. The <source> tag specifies the specific video file and the type attribute is used to specify the MIME (Multipurpose Internet Mail Extensions) type. If the browser does not support a video tag then the content present inside will be displayed. Provide multiple video formats such as MP4, MOV, AVI, WEBM.. etc. Example: Illustration of embedding video in an HTML Document.
Output: Embedding AudioThe <audio> tag, helps us to embed the required audio into the webpage. The control property adds playback control like play, pause, volume. etc. The <source> tag specifies the specific audio file and the type attribute is used to specify the MIME (Multipurpose Internet Mail Extensions) type. If the browser does not support video a tag then the content present inside will be displayed. Example: Illustration of embedding audio in an HTML document.
Output: |
Reffered: https://www.geeksforgeeks.org
Geeks Premier League |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |