Bootstrap Tutorial - Create Horizontal Definition Lists








The following code shows how to create Horizontal Definition Lists.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<script type="text/javascript"
  src="http://code.jquery.com/jquery.min.js"></script>
<script
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<style type="text/css">
.bs-example {<!-- ww  w  .ja v  a 2  s  . com-->
  margin: 20px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <h2>Horizontal Definition Lists</h2>
    <dl class="dl-horizontal">
      <dt>User Agent</dt>
      <dd>An HTML user agent is any device that interprets HTML
        documents.</dd>
      <dt>Client-side Scripting</dt>
      <dd>Client-side scripting generally refers to the category of
        computer programs on the web that are executed client-side i.e. by
        the user's web browser.</dd>
      <dt>Document Tree</dt>
      <dd>The tree of elements encoded in the source document.</dd>
    </dl>
  </div>
</body>
</html>

Click to view the demo