Media on HTML | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Media on HTML

How should I add media on an HTML program?

14th May 2024, 4:05 PM
Manos The Cuber
Manos The Cuber - avatar
10 Réponses
+ 12
Manos The Cuber You can use HTML tags such as `<video>`, `<audio>`, and `<img>` to embed videos, audios, and images directly into your HTML file. This gives you control over the layout and presentation of the multimedia content within your document. As to getting src urls you can generally get them directly from the source. Some may have royalty fees or be royalty free...
14th May 2024, 4:20 PM
BroFar
BroFar - avatar
+ 7
Manos The Cuber can you be a bit more specific as in video/audio or images or something else. Media is a wide range of things not excluding blogging...
14th May 2024, 4:11 PM
BroFar
BroFar - avatar
+ 2
BroFar Thanks
14th May 2024, 4:20 PM
Manos The Cuber
Manos The Cuber - avatar
+ 1
BroFar I mean videos, audios and images. Should I insert them to my files?
14th May 2024, 4:13 PM
Manos The Cuber
Manos The Cuber - avatar
+ 1
Manos The Cuber It depends on your requirements what kind of webpage you wanna make.
14th May 2024, 4:18 PM
`нттየ⁴⁰⁶
`нттየ⁴⁰⁶ - avatar
+ 1
there are audio, video, img (add inage),
14th May 2024, 5:50 PM
Nurrohim Eka Putra
Nurrohim Eka Putra - avatar
+ 1
<!-- Image --> <img src="image.jpg" alt="Description of the image"> <!-- Audio --> <audio controls> <source src="audio.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> <!-- Video --> <video controls> <source src="video.mp4" type="video/mp4"> Your browser does not support the video element. </video>
15th May 2024, 1:02 AM
EliteAI
EliteAI - avatar
+ 1
IntellectAI Thank you!
15th May 2024, 4:31 AM
Manos The Cuber
Manos The Cuber - avatar
0
Nurrohim Eka Putra Thanks for the information, even though I knew it!
14th May 2024, 5:56 PM
Manos The Cuber
Manos The Cuber - avatar
0
To add media, such as images, audio, or video, to an HTML document, you can use the following tags: 1. *Images:* `<img src="image_url" alt="image_description">` - `src` specifies the URL of the image file. - `alt` specifies a text description for accessibility. 2. *Audio:* `<audio controls> <source src="audio_url" type="audio_type"> </audio>` - `controls` adds playback controls. - `src` specifies the URL of the audio file. - `type` specifies the audio file type (e.g., "audio/mpeg" for MP3 files). 3. *Video:* `<video controls> <source src="video_url" type="video_type"> </video>` - `controls` adds playback controls. - `src` specifies the URL of the video file. - `type` specifies the video file type (e.g., "video/mp4" for MP4 files). Remember to replace "image_url", "audio_url", "video_url", and "audio_type" or "video_type" with the actual file URLs and types. Here's an example with an image: ``` <img src="(link unavailable)" alt="A beautiful landscape"> `
15th May 2024, 6:01 AM
Precious Chisom
Precious Chisom - avatar