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

General Discussion

I want to add the Lake Tahoe website to my website.

I want to add the Lake Tahoe website that I created in the CSS videos to my portfolio website I created in the HTML videos. I want to make it a link from one of the image. How would it be best to go about this?

4 Answers

Jeff Lemay
Jeff Lemay
14,268 Points

Wrap the image in an < a > tag with an href going to your Lake Tahoe site. Adding target="_blank" will make the link open in a new tab.

<a href="http://laketahoesite.com" target="_blank"><img src="images/laketahoe.jpg" alt="LakeTahoeSite.com was built to showcase blah blah blah blah" title="Visit LakeTahoeSite.com - A site built by me" /></a>

I do not have it on its own website yet. Do I have to create a new website for it, or can I add it as an extension of my other website. Like another page. How would I add it as a new page?

<a href="laketahoe.html" target="html/Laketahoe.html"><img src="images/laketahoe.jpg" alt="Lake Tahoe information to show CSS capabilities." title="Visit laketahoe - A site built by me" /></a>

This is the code I tried adding to my home page. It's not working though.

<header id="top" class="main-header"> <a href="index.html"> <span class="title">Journey Through the Sierra Nevada Mountains</span>

and that is the code I tried using in my laketahoe.html to link them. Obviously I'm not doing something right, but I can't find anything online to help me figure it out.

texas2010
texas2010
27,079 Points

I think you forget to add this one?

    <a href="index.html">
  <span class="title">Journey Through the Sierra Nevada Mountains</span>
</a>

I'm using Cyberduck and Brackets if that helps.