Bootstrap4 Tutorial
Bootstrap is the world's most popular front-end component library, used for developing responsive layouts and mobile-first WEB projects.
Bootstrap4 is an open-source toolkit for HTML, CSS and JS development. Using the Sass variables, numerous mixins, responsive grid system, extensible pre-built components, and powerful jQuery-based plugin system we provide, you can quickly prototype your ideas or build an entire app.
Who should read this tutorial?
As long as you have basic knowledge of HTML and CSS, you can read this tutorial and go on to develop your own website. After finishing this tutorial, you will reach an intermediate level of using Bootstrap for web projects.
Knowledge you need before reading this tutorial:
Before you start reading this tutorial, you must have a basic knowledge of HTML, CSS, and JavaScript. If you are not yet familiar with these concepts, we recommend reading our tutorials first:
Bootstrap4 Example
Bootstrap4 Example
<
div
class
=
"
jumbotron text-center
"
<
h1
My First Bootstrap Page
h1
<
p
Resize the browser to see the effect!
p
div
<
div
class
=
"
container
"
<
div
class
=
"
row
"
<
div
class
=
"
col-sm-4
"
<
h3
First column
h3
<
p
Runoob Tutorial
p
<
p
What you learn is not just technology, but also dreams!!!
p
div
<
div
class
=
"
col-sm-4
"
<
h3
Second column
h3
<
p
Runoob Tutorial..
p
<
p
What you learn is not just technology, but also dreams!!!
p
div
<
div
class
=
"
col-sm-4
"
<
h3
The third column
h3
<
p
Runoob Tutorial..
p
<
p
What you learn is not just technology, but also dreams!!!
p
div
div
div
Try it »
Bootstrap4 vs Bootstrap3
Bootstrap4 is the latest version of Bootstrap. Compared with Bootstrap3, it has more specific classes and turns some related parts into related components. At the same time, the size of Bootstrap.min.css has been reduced by more than 40%.
Bootstrap4 has dropped support for IE8 and iOS 6, and now only supports IE9+ and iOS 7+ browsers. If you need to use older browsers, please use Bootstrap3。