Bootstrap Tutorial - Create tab from UL list








The following code shows how to create tab from UL list.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script
  src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script
  src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!--from   w w w . j a  va 2 s.c  o m-->
</head>
  <body>
    <div class="container">
      <ul class="nav nav-tabs">
      <li class="active"><a href="#">About</a></li>
      <li><a href="#">Activity</a></li>
      <li><a href="#">Liked Pages</a></li>
      </ul>
    </div>
  </body>
</html>

Click to view the demo