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 trialLarry Gonzales
6,065 PointsBroken image icon when previewing in browser.
Broken image icon shows when previewing code in web browser. Here is my code...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Larry Gonzales | Developer</title> </head> <body> <header> <a href="index.html"> <h1>Larry Gonzales</h1> <h2>Developer</h2> </a> <nav> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </nav> </header> <section> <ul> <li> <img src="img/LarryG-2.jpg" alt=""> </li> </ul> </section> <footer> <p>Ā© 2017 Larry Gonzales</p> </footer> </body> </html>
Please let me know what I'm missing. I'm using atom as my text-editor, also previewing the image worked before in the web browser(Chrome), as I was practicing, and memorizing the syntax code. Made sure content is set to "show all images" in browser settings as well before previewing html code.
1 Answer
Hasha K J
7,355 PointsIn the head tag, <style> img{ background-repeat:no-repeat; } </style>