Add home icon to header

Description

The following code shows how to add home icon to header.

Example


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
</head><!--   w  ww  . j a v  a2s  .co  m-->
<body>
  <div data-role="page" id="test">
    <div data-role="header" data-theme="a">
      <a href="#home" data-icon="home" data-iconpos="notext"></a>
      <h1>Home</h1>
    </div>
  </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme