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.

HTML

john DOe
john DOe
27,897 Points

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.