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
RUPESH BASUDE
2,932 PointsImage selection
I am having a problem in placing images.when i add image into the section element,after i saved & reloading it will not showing the image in the workspace.Help me in this
2 Answers
Sam Baines
4,315 PointsHi Rupesh - if you post the html code you are using we will be able to show you where any potential mistakes are. Post your html code with three back ticks (```) either side of the code to make it look like below:
<img src="img/profile-photo.jpg" alt="">
Above is the general html code for placing images in a website.
Mitchell Springer
2,576 PointsWell without seeing your code it's hard to judge the issue. My one thought is to make sure you are typing the correct path. If the image is in the same folder level as your html document, then you wouldn't use img/ in your img src code.
RUPESH BASUDE
2,932 PointsI have one more doudt.if my workspace is closed after saving my code,it will keep saving the code or i need to write the code from starting when i want to open the same workspace ?
Mitchell Springer
2,576 PointsThe workspace saves after each lesson as long as you click save. You don't need to rewrite it everytime.
RUPESH BASUDE
2,932 Pointsthank you very much
RUPESH BASUDE
2,932 PointsRUPESH BASUDE
2,932 Pointsok. first i added the image to the workspace that i want to put that image into "section"element.I write my code as following..
After this i saved workspace and clicked on preview.then it didn't shows the image.I am not getting idea what wrong with me.