Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,267 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
24,863 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.