+ 1
How to add image and audio
https://sololearn.com/compiler-playground/WwT6oBW9F2Ac/?ref=app
6 Réponses
+ 2
Keshav Read this, and it's from Yaroslav Vernigora
Hi! Please read this tutorials: 👇
Images
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Images_in_HTML
audio:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
video:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
How To Upload your phone images on SoloLearn using phone
https://code.sololearn.com/WT3661NHpV3B/?ref=app
Upload content with Dropbox [Tutorial]
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
How to host/upload an image (IMGBB way)
/by Farhanaz/
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
Upload content with Google drive
https://code.sololearn.com/Wa25A17a19a1/?ref=app
+ 1
If you want to add images and videos then just type this :
<Image id="--"
Src="---"
</Image>
And for video is same as it is like above format.
+ 1
To add both image and audio in your HTML, you can use the <img> tag for the image and the <audio> tag for the audio (you already used it correctly).
<!DOCTYPE html>
<html>
<head>
<title>Assassin’s Creed Rogue</title>
</head>
<body>
<div>
<h1>Assassin’s Creed Rogue</h1>
<!-- Game cover image -->
<img src="https://upload.wikimedia.org/wikipedia/en/2/2e/Assassin%27s_Creed_Rogue_cover.jpg"
alt="Assassin’s Creed Rogue Cover"
width="300">
<!-- Audio player -->
<audio controls>
<source src="https://nu.vgmsite.com/soundtracks/assassins-creed-rogue-soundtrack-2014/wcywmugdwt/01.%20Assassin%27s%20Creed%20Rogue%20Main%20Theme.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
</body>
</html>
0
(this Is me) look the code, done
0
Shay Patrick Cormac I really found this helpful.
0
How can I add image and video in html