+ 2

How do you add images in HTML? do i need to add something else other than img src?

i'm new and trying out the codeplayground. i tried copying the url of the image as a test but it won't appear? do i need to convert the url or add new codes?

7th Nov 2022, 5:29 AM
ash
ash - avatar
6 Answers
+ 2
thank you !!! i'll try both of them out TvT
7th Nov 2022, 5:48 AM
ash
ash - avatar
+ 1
check if you are following this syntax:- <body> <img src="link"> </body> Hope this will solve your problem.All the best!
7th Nov 2022, 5:37 AM
BORN-LOSER
BORN-LOSER - avatar
+ 1
Yes, you can upload the image in this link and then copy the HTML full linked and after that you paste the web playground on Sololearn, the link is given below. https://imgbb.com/
7th Nov 2022, 5:39 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 1
you should also use the alt="" part inside the img tag, since its a must after the W3C standart and it affects your SEO positively. Inside the "alt" comes what you see inside the picture, if you see a red car, write "a red car" etc.
7th Nov 2022, 1:14 PM
Omar
Omar - avatar
0
Para añadir una imagen usas img src="ruta d la imagen" >
8th Nov 2022, 1:07 PM
Moisés Armando Pérez Peréz