jQuery Mobile in the examples - Page structure

The page consists of a header, main part and footer

The page consists of a header, main part and footer

<!DOCTYPE html>
<html>
<head>
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
   <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
   <script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
   <div data-role="header"><H1>Header</H1></div>
   <div role="main" class="ui-content">
      <p>The main part</P>
   </div>
   <div data-role="footer"><H2>Footer</H2></div>
</div>
</body>
</html>
Pobierz kod