Introduction to Bootstrap web design for beginners

Two Basic Bootstrap Pages

Example 1

Following code for a basic Bootstrap page (with a responsive fixed width container)

<!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="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container">
  <h1>Hi I'm Meraj Ansari this is my First Bootstrap Page</h1>
  <p>This is some text.</p>
</div>
 
</body>
</html>

Example 2

Following code for a basic Bootstrap page (with a full width container)

<!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="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container-fluid">
  <h1> Hi I'm Meraj Ansari this is my First Bootstrap Page </h1>
  <p>This is some text.</p>
</div>
 
</body>
</html>
READ  Bootstrap - Grid System