+ 2

How can I display an image successfully?

Do I need it in my gallery, or can I take the link from , say, google? Do I need any other elements other than the img src?

3rd Nov 2019, 6:30 PM
Theodore206
Theodore206 - avatar
2 Answers
+ 2
Incase you're using a pc you can have the image you want in the same folder as the html doc or just put it inside different folder and you can always link to it by using the 'src' attribute in the IMG element like <img src="foldername/logo.jpg" alt=""/>. And yes you can link it from any website like Google. And for other elements, I can't say I'm that knowledgeable yet but you can also use CSS to link to a image using {background-image: url(yourinage);}
3rd Nov 2019, 6:56 PM
Abdiaziz Ahmed
Abdiaziz Ahmed - avatar
+ 4
What about on code playground?
2nd Mar 2020, 10:45 AM
Sonic
Sonic - avatar