0
How do i loop thru a array(with images, str and int) and present it on a HTML site?
I tried to do it, but the pictures(img) is not coming up. Any input? https://code.sololearn.com/WYyhCrC067Fk/?ref=app
3 Réponses
0
Theres no way to fecth an image in your code. You are just writing the name of the file
Images need img tag with src attribute.
0
Thanks for the answer, what would be the proper way to do it then?
0
I dont know if proper way to do it but this is what can be added in your code:
var geek = ['<img width="150px " src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRHPWY5z5GzyhBQa0T_Dtsjp_ftB_rLIXdleg&usqp=CAU">',"Clark", 29, "Likes video games"]