Check out example codes for "html phone number". It will help you in understanding the concepts better.

Code Example 1

Area code with dashes, 1 and + sign

<a href="tel:+1-555-555-1212">555-555-1212</a>
Area code with no dashes, 1 and + sign

<a href="tel:+15555551212">555-555-1212</a>

Code Example 2

<label for="phone">Enter your phone number:</label>
<input type="tel" 
  id="phone" name="phone" 
  pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}">

Code Example 3

One click should open the phone dialler and input the number to be called.
<a href="tel:5551234567">Call (555)123-4567</a>

Learn ReactJs, React Native from akashmittal.com