Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Cameron Gates
3,821 PointsMy Image won't show even though it's in the same folder as my index.html file. Can someone tell me what I am doing wrong
I'm using the JEdit text editor. Idk what I am doing wrong. No clue what to do next.
Here is my code. I've exhausted every option I can think of. Please, help. Thanks.
<!doctype html>
<html lang= "en"> <head> <meta charset = "utf-8"> <title> My Page </title> </head> <body>
<img src= "apple_ex.png">
</body> </html>
1 Answer
Carlos Alberto Del Cueto Carrejo
13,817 PointsCheck the name of your file, I just copied and pasted your code into a new file, changed the name of the file to a new one I have and it worked. Just a tip , indent your code, it makes it more readable.
<!doctype html>
<html lang= "en">
<head>
<meta charset = "utf-8">
<title>
My Page
</title>
</head>
<body>
<img src= "kamishibai-min.png">
</body>
</html>
Carlos Alberto Del Cueto Carrejo
13,817 PointsI used the same structure, image file is located in the same directory as the html file.
Cameron Gates
3,821 PointsDo you save the file inside a folder on the text editor or on your computer? And will do!
Cameron Gates
3,821 PointsThanks, man! I changed the name of it, and it worked! Thanks for the help, dude!
Carlos Alberto Del Cueto Carrejo
13,817 PointsGlad I could help :)
Terrelle Holliday
142 PointsTerrelle Holliday
142 Pointstry this <img src= "/apple_ex.png">
or making a seperate folder for images call it images or img then try
<img src="/images/apple_ex.png"> or <img src="/img/apple_ex.png">