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

HTML

unable to load the img src

i am trying to give the image src from different path in my laptop, but the image is not loading: Code <body> <img src="C:\Users\emuddub\Desktop\project\IMG_5524.jpg" alt="mudit and Anki"> <h1>Mudit Anki</h1>

HI Mudit,

Please can you post your code below so we can have a look at it for you.

Thanks

1 Answer

sorry got the solution. i was using this as img src: "C:\Users\emuddub\Desktop\project\IMG_5524.jpg" correct code is -- "\C:\Users\emuddub\Desktop\project\IMG_5524.jpg"

Hello, just as a recommendation: don't use different paths 'cause you'll have troubles later when moving the site to other computer or uploading to a server. The best way is to create a directory with all files inside a folder for every website.

Hope it helps!

Hello, just as a recommendation: don't use different paths 'cause you'll have troubles later when moving the site to other computer or uploading to a server. The best way is to create a directory with all files inside a folder for every website.

Hope it helps!