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 trialumairbalani
11,390 PointsBummer! Make sure you include an image tag that displays "img/numbers-01.jpg"
here is my code. Please help me out
<ul>
<li>
<img scr="img/numbers-01.jpg" alt="">
</li>
<li>
<img scr="img/numbers-02.jpg" alt="">
</li>
<li>
<img scr="img/numbers-06.jpg" alt="">
</li>
</ul>
17 Answers
Chase Lee
29,275 PointsIt needs to be src
not scr
.
Chase Lee
29,275 PointsAre you sure that the index.html
is the root of the folder? Try making the "I" lowercase.
umairbalani
11,390 PointsI did understand last part " Try making the "I" lowercase" what do you mean by this?
umairbalani
11,390 Pointsthanks
Chase Lee
29,275 PointsYou're welcome!
umairbalani
11,390 PointsMain page contain hyperlink of the files I've saved in the workspace. When I click them pages opens here is code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RSAM | Designer</title>
</head>
<body>
<header>
<a href=index.html>
<h1>Umair Balani</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.hmtl">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<ul>
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p>This picture two.</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p>This is picture three</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt="">
<p>This is picture four</p>
</a>
</li>
<li>
<a href="img/numbers-12.jpg">
<img src="img/numbers-12.jpg" alt="">
<p>This is picture five</p>
</a>
</li>
</ul>
</section>
<footer>
<img src="img/facebook.wrap.png" alt="Facebook Logo">
<p>© 2014 Umair Balani.</p>
</footer>
</body>
</html>
umairbalani
11,390 PointsWhen I hit preview page with hyperlink of files open. In order to go the page I click link then it shows me page why??
Your help is really appreciated.
Chase Lee
29,275 PointsI believe that the a
tags are your problem.
umairbalani
11,390 PointsHow to solve this problem?
Chase Lee
29,275 PointsJust get rid of the a
tags around your img
tags. Form this:
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p>This is picture three</p>
</a>
To this:
<img src="img/numbers-06.jpg" alt="">
<p>This is picture three</p>
Hope that helps.
umairbalani
11,390 PointsWell problem still unsolved, I'm asking why my main page is not opening directly, instead it showing mean hyperlinks of files saved in workspaces.
Pics are now being showed after getting rid of "a" tags
Chase Lee
29,275 PointsCould you give me a screenshot of what you're getting?
umairbalani
11,390 Pointshow to put img here?
umairbalani
11,390 PointsI've screenshot but here its not allowing me to paste.
Chase Lee
29,275 PointsPut it on an online image uploader like "Imgur" then follow the markdown cheatsheet to paste it in the forum.
umairbalani
11,390 PointsChase Lee
29,275 PointsYou need to link me to the actual screenshot page.
umairbalani
11,390 Pointshere is link
Chase Lee
29,275 PointsYour pictures aren't public.
umairbalani
11,390 PointsNow its public
umairbalani
11,390 PointsI did understand last part " Try making the "I" lowercase" what do you mean by this?
Chase Lee
29,275 PointsFrom Index.html
to index.html
.
umairbalani
11,390 Pointsok
umairbalani
11,390 PointsIt worked thank you very very very much. I really appreciate it.
Chase Lee
29,275 PointsYou're welcome.
umairbalani
11,390 Pointsumairbalani
11,390 PointsThank you very much.
But I've one more question to ask I've coded pictures to show on my page instead of pics their captioned is showing. When I click captioned it shows pic why??
Chase Lee
29,275 PointsChase Lee
29,275 PointsHmmmm...Could you show me a screenshot of that?