(For more resources related to this topic, see here.)
Bootstrap contains a top-notch, responsive mobile-first grid, which allows you to implement your design in a breeze; it comes with ready-made styles for typography, navigation, tables, forms, buttons, and more.
Bootstrap also includes some jQuery plugins, such as Modal, Dropdown, Tooltip, and Carousel, which come in handy quite often.
Today, you can use Bootstrap to throw together quick prototypes or guide the execution of more sophisticated designs and larger engineering efforts. In other words, Bootstrap is a very simple way to promote quick, clean and highly usable applications.
– Mark Otto, creator of Bootstrap
Even though Bootstrap comes with all these features, none of them actually get in the way of further customization. Bootstrap is very easy to extend, especially if you use LESS instead of traditional CSS.
At its core, Bootstrap is just CSS, but it's built with Less, a flexible pre-processor that offers much more power and flexibility than regular CSS. With Less, we gain a range of features like nested declarations, variables, mixins, operations, and color functions.
– Mark Otto, creator of Bootstrap
Next, you will learn about the advantages and disadvantages of using Bootstrap.
As with many things, using Bootstrap too has its pros and cons. Let us list some important things that you will need to know when you decide whether or not to use Bootstrap in your project.
The pros are as follows:
The cons are as follows:
Now that you know when it is suitable to use Bootstrap, you are ready to start your first Bootstrap project. Perform the following steps to get started:
<!DOCTYPE html>
<html>
<head>
<title>Hello from Bootstrap</title>
<!-- Ensure proper rendering and touch zooming on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media
queries -->
<!--[if lt IE 9]>
<script src ="https://oss.maxcdn.com/libs/html5shiv/3.7.0/ html5shiv.js">
</script>
<script src ="https://oss.maxcdn.com/libs/respond.js/1.3.0/ respond.min.js">
</script>
<![endif]-->
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
You can omit html5shiv.js and respond.js if you don't wish to support older versions of Internet Explorer.
Let us look at the following reasons why we included all those CSS and JavaScript files:
Navigate to your project directory using your favorite web browser; you should see your project in action as shown in the following screenshot. Not too impressive, but do not worry, you will soon add more to it.
For more information on how to get started with Bootstrap, refer to the Getting started page on the official site at http://getbootstrap.com/getting-started/.
In this article, you learned about the pros and cons of Bootstrap, as well as how to decide whether or not to use Bootstrap in a project. You also learned how to create a very simple Bootstrap project.