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 trialPatrick Ludwig
2,462 Pointscan you use an area code on phone numbers?
your example of the phone number 555-6425 doesn't include any area code. I am assuming that it is ok to add an area code. Is this true?
1 Answer
Garrett Sanderson
12,735 PointsHi Patrick,
Yes you can add the area code.
It should look something like this
<a href="tel:+15555551212">(555)555-1212</a>
The plus sign is necessary if you want the number to be able to be dialed from outside the country.
Fred Sites
11,151 PointsFred Sites
11,151 PointsYes you can add area code. As long as you tell it its a phone number it will automatically prompt the phone to open the call screen with those digits. You can also make text clickable - i.e. "Click to call us today" and have it reference the phone number.