The following code shows how to create Nav pills with icons.
<!-- w w w.ja v a 2s.c o m-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
</head>
<body>
<ul class="nav nav-pills">
<li class="active"><a href="#"><i class="icon-file"></i> New
File</a></li>
<li><a href="#"><i class="icon-cut"></i> Cut</a></li>
<li><a href="#"><i class="icon-edit"></i> Edit</a></li>
<li><a href="#"><i class="icon-paste"></i> Settings</a></li>
</ul>
</body>
</html>