Single page template in JQuery mobile

 The following code is simple example for creating mobile pages using JQuery mobile. For developing JQuery mobile pages you needs to include the jquerymobile.css, jquerymobile.js and jquery.js files. You can able to download these file from jquery site. This is my single page template.

<!DOCTYPE html>
       <meta charset="ISO-8859-1">
       <meta name="viewport" content="width=device-width, initial-scale=1">
       <title>JQuery Mobile Single Page Template</title>
       <script type="text/javascript" src="js/jquery.js"></script>
       <script type="text/javascript" src="js/"></script>
       <link rel="stylesheet" type="text/css"  href="css/themes/default/" />
       <div data-role="page">
              <div data-role="header">
              <div data-role="content">
                     <p>Page main content goes here..!</p>
              <div data-role="footer">

Now preview this page using chrome or safari you can able to get the result like this.

You can download this example here.


Popular Posts