Skip to content
← Back to Community
Image not showing
Profile icon
SamKunefeh

When I run this repl, nothing appears on the website eventhough an image is supposed to be there. And yes, I have tried renaming the image file’s name and the spelling is correct. What am I doing wrong?

Answered by SameeraMurthy [earned 5 cycles]
View Answer
Voters
Profile icon
SamKunefeh
Comments
hotnewtop
Profile icon
SameeraMurthy

Simple Solution

It looks like you spelled src wrong!
You should do (on line 10):

<img src="family.jpg"/>

src just stands for source.

Profile icon
SamKunefeh

@SameeraMurthy Thanks for the help!

Profile icon
IOP3

Solution

Do:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>title</title> </head> <body> <img src="family.jpg"> </body> </html>