Media Tags

Dear Sciaku Learner you are not logged in or not enrolled in this course.

Please Click on login or enroll now button.

If you have any query feel free to chat us!

Happy Coding! Happy Learning!

Lecture 32:- Media Tags

HTML provides several tags for embedding multimedia content, such as images, audio, and video, into web pages. Some of the most commonly used media tags are:

  1. <img>: Embeds an image into a web page. The src attribute specifies the URL of the image file, while the alt attribute provides a text description of the image for screen readers and other assistive technologies. For example:

cssCopy code

<img src="image.jpg" alt="A beautiful landscape">

  1. <audio>: Embeds an audio file into a web page. The src attribute specifies the URL of the audio file, while the controls attribute displays playback controls. For example:

bashCopy code

<audio controls>  <source src="music.mp3" type="audio/mpeg">  Your browser does not support the audio element. </audio>

  1. <video>: Embeds a video file into a web page. The src attribute specifies the URL of the video file, while the controls attribute displays playback controls. For example:

cssCopy code

<video width="320" height="240" controls>  <source src="video.mp4" type="video/mp4">  Your browser does not support the video element. </video>

  1. <picture >: Defines a container for multiple <img> elements, each representing different sources for different display/device scenarios. The browser chooses the most appropriate source based on the current layout, screen size, and screen density, using the srcset and media attributes. For example:

phpCopy code

<picture >  <source srcset="image-large.jpg" media="(min-width: 800px)">  <img src="image-small.jpg" alt="A beautiful landscape"> </picture >

  1. <figcaption>: Provides a caption for a <figure> element that contains multimedia content. For example:

cssCopy code

<figure>  <img src="image.jpg" alt="A beautiful landscape">  <figcaption>A beautiful landscape in the mountains</figcaption> </figure>

4. Forms

Comments: 2

profile
@niteshguptav63
17-Nov-2024, 01:39 PM

I am not able to access videos from second class and further. I have already completed first class

profile
@niteshguptav63
16-Nov-2024, 10:56 AM

When will I get my course?

profile
@admin79
17-Nov-2024, 01:29 PM

Now, Your query was resolved.

Frequently Asked Questions (FAQs)

How do I register on Sciaku.com?
How can I enroll in a course on Sciaku.com?
Are there free courses available on Sciaku.com?
How do I purchase a paid course on Sciaku.com?
What payment methods are accepted on Sciaku.com?
How will I access the course content after purchasing a course?
How long do I have access to a purchased course on Sciaku.com?
How do I contact the admin for assistance or support?
Can I get a refund for a course I've purchased?
How does the admin grant access to a course after payment?