Example:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.css" />
<script src="http://code.jquery.com/jquery-[version].min.js"></script>
<script src="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.js"></script>
</head>
<body>
...content goes here...
</body>
</html>
<link rel="stylesheet" href="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.css" />
<script src="http://code.jquery.com/jquery-[version].min.js"></script>
<script src="http://code.jquery.com/mobile/[version]/jquery.mobile-[version].min.js"></script>
</head>
1. Link to jQuery mobile CSS
2. Link to jQuery library
3. Link to jQuery mobile JS
<body> <div data-role="page"> <div data-role="header">...</div> <div role="main" class="ui-content">...</div> <div data-role="footer">...</div> </div> </body>
<div data-role="content"> <ul data-role="listview"> <li><a href="#who">Who</a></li> <li><a href="#what">What</a></li> <li><a href="#where">Where</a></li> <li><a href="#when">When</a></li> </ul> </div>
<div data-role="content"> <ul data-role="listview"> <li><a href="#who">Who</a></li> <li><a href="#what">What</a></li> <li><a href="#where">Where</a></li> <li><a href="#when">When</a></li> </ul> </div>
The id of the nav should match the id of the page div
<div data-role="navbar" data-position="fixed"> <ul> <li><a href="#one">One</a></li> <li><a href="#two">Two</a></li> </ul> </div><!-- /navbar -->
You can also add data-position="fixed" to fix a nav element to the top or bottom of a page
<div id="who" data-role="page" data-theme="b" data-add-back-btn="true">
You can add a back button in your header by using the attribute data-add-back-btn="true" in your page div