How to add image to my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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