Thursday, January 26, 2017

Bootstrap Example-Eleven (Bootstrap Typography)

Bootstrap Example-Eleven (Bootstrap Typography)


Bootstrap Example-Eleven (Bootstrap Typography)-The <dl> element




Write the code on your index.html :

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h1>Description Lists</h1>   
  <p>The dl element indicates a description list:</p>
  <dl>
    <dt>Coffee</dt>
    <dd>- black hot drink</dd>
    <dt>Milk</dt>
    <dd>- white cold drink</dd>
  </dl>    
</div>

</body>
</html>

You will get the Result:

 Description Lists

The dl element indicates a description list:

Coffee
    - black hot drink
Milk
    - white cold drink
Source: http://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_txt_dl&stacked=h

1 comment: