Friday, October 28, 2011

Basic jQuery Mobile Web Page

It's a sample code of a basic mobile web page utilize jQuery Mobile.

<!DOCTYPE html>
<html>
<head>
<title>Basic jQuery Mobile Web Page</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.css" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
</head>
<body>

<div data-role="page" id="home">
<div data-role="header">
<h1>My first web Home page</h1>
</div>
<div data-role="content">
<p>Hello ALL</p>
<p>it's a basic mobile web page utilize jQuery Mobile</p>
</div>
<div data-role="footer">
<h4>http://mobile-web-app.blogspot.com/</h4>
</div>
</div>

</body>
</html>



The HTML loaded on Firefox running at Android device:
Basic jQuery Mobile Web Page

Related:
- Multi-page jQuery Mobile web page



No comments:

Post a Comment