O'Reilly logo

jQuery Mobile Web Development Essentials Second Edition by Andy Matthews, Raymond Camden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Contacting the hotel

Now, let's take a look at the contact page. This will provide the user with information on how to reach the hotel:

code 5-5: contact.html
<div data-role="page">
  <div data-role="header">
    <h1>Contact Us</h1>
  </div>
  <div data-role="content">
    <p>
      <b>Phone:</b> <a href="tel:555-555-5555">555-555-5555</a><br/>
      <b>Email:</b> <a href="mailto:people@camdenhotel.fake">people@camdenhotel.fake</a>
    </p>
  </div>
  <div data-role="footer">
    <h4>&copy; Camden Hotel 2012</h4>
  </div>
</div>

As before, we've wrapped our page in the proper script blocks and div tags. Make a special note of our two links. Both the phone and e-mail links use URLs that may not look familiar to you. The first, tel:555-555-555, is actually a way to ask the mobile device ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required