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

HTML Href specials

Hey Treehouse! After watching the basic web tutorials, I learned something really cool:

href="tel: (some number)" can be used on any device to access the phone!

href="mailto: (some email)" can be used on any device to access the mail and go directly to compose an email to (some email)!

Are there any more such special href links to link to services like maps, social media, etc?

1 Answer

You can link to sections on your page by using href = # You can jumps to div's on a long page. EX;

<div id="sectionA"></div>

<div id="sectionB"></div>

<div id="sectionC"></div>

You can use href="sectionB" and it will jump to that section of the page.

Basically any that has an ID, can be used. doesn't have to necessarily have to be div's.