How to add image to my code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grátis
0

How to add image to my code

How can I add pictures to my code and it will show the exact picture in my output

3rd Nov 2023, 5:33 PM
Bamgbopa Quadri
Bamgbopa Quadri - avatar
7 Respostas
+ 2
Syntax for HTML: <img src="url of image" alt="text if image fails to load"> The "src" is required, but the "alt" is optional.
3rd Nov 2023, 8:48 PM
Annihilate
Annihilate - avatar
+ 4
Quizzy Frosh If you don't have a web server or web hosting service, you can use Google Photos to host images. Upload an image to Google Photos and use this tool to generate a link: https://www.labnol.org/internet/embed-google-photos-in-website/29194/
3rd Nov 2023, 7:26 PM
Keith
Keith - avatar
+ 3
What programming language? Can you post your attempt? You will need to be more specific for anyone to be able to assist you 😉
3rd Nov 2023, 5:35 PM
Keith
Keith - avatar
+ 2
Quizzy Frosh Your images aren't working because they are not accessible via the web. Your URL is pointing to your Android phone.
3rd Nov 2023, 5:52 PM
Keith
Keith - avatar
+ 2
use <img src="//url " alt="">
4th Nov 2023, 12:11 PM
Alhaaz
Alhaaz - avatar
5th Nov 2023, 1:57 PM
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ - avatar
3rd Nov 2023, 5:48 PM
Bamgbopa Quadri
Bamgbopa Quadri - avatar