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

HTML How to Make a Website Creating HTML Content Build the Footer

Sven Vanlandschoot
Sven Vanlandschoot
11,252 Points

Fb link not working

Hi all.

I'm having trouble getting the social links to work. The twitter link works fine but the fb link only works on my personal laptop.

      <footer>
        <a href="http://facebook.com/svenvls">
          <img src="img/facebook-wrap.png" alt="Facebook" 
            class="social-icon">
        </a>
        <a href="http://twitter.com/svenvls">
          <img src="img/twitter-wrap.png" alt="Twitter"
            class="social-icon">
        </a>

        <p>&copy; 2015 Sven Vanlandschoot.</p>
      </footer>

feel free to see what I mean and visit www.svenvanlandschoot.com If you click on the fb logo you will be linked to www.svenvanlandschoot.com/www.facebook.com

Your Facebook logo in the footer seems to work for me. However, the link to your Facebook page is broken on your About page. Try putting "http://facebook.com/svenvls" inside the href attribute instead of just "www.facebook.com". The browser is thinking that you're trying to link to another page on your site, hence www.svenvanlandschoot.com/www.facebook.com.

1 Answer

Sven Vanlandschoot
Sven Vanlandschoot
11,252 Points

Oki thx alot for the info. It seems to work fine now. Strange I didn't saw that before.

Glad it's working!