Hướng dẫn Bootstrap 4
Bootstrap 4 là phiên bản mới hơn của Bootstrap , là khung HTML, CSS và JavaScript phổ biến nhất để phát triển các trang web đáp ứng, ưu tiên thiết bị di động.
Bootstrap 4 hoàn toàn miễn phí để tải xuống và sử dụng!
Hãy tự mình thử các ví dụ
Hướng dẫn Bootstrap 4 này chứa hàng trăm ví dụ về Bootstrap 4.
Với trình chỉnh sửa trực tuyến của chúng tôi, bạn có thể chỉnh sửa mã và nhấp vào nút để xem kết quả.
Ví dụ về Bootstrap 4
<div class="jumbotron text-center">
<h1>My First Bootstrap
Page</h1>
<p>Resize this responsive page to see the effect!</p>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<h3>Column 1</h3>
<p>Lorem ipsum
dolor..</p>
</div>
<div class="col-sm-4">
<h3>Column 2</h3>
<p>Lorem ipsum
dolor..</p>
</div>
<div class="col-sm-4">
<h3>Column 3</h3>
<p>Lorem ipsum
dolor..</p>
</div>
</div>
</div>
Nhấp vào nút "Hãy tự mình thử" để xem nó hoạt động như thế nào.
Bootstrap 5 so với Bootstrap 3 & 4
Hướng dẫn này theo sau Bootstrap 4 , được phát hành vào năm 2018, là bản nâng cấp cho Bootstrap 3 , với các thành phần mới, stylesheetc nhanh hơn, phản hồi nhanh hơn, v.v.
Bootstrap 5 (released 2021) is the newest version of Bootstrap; It supports the latest, stable releases of all major browsers and platforms. However, Internet Explorer 11 and down is not supported.
The main differences between Bootstrap 5 and Bootstrap 3 & 4, is that Bootstrap 5 has switched to JavaScript instead of jQuery.
Note: Bootstrap 3 and Bootstrap 4 is still supported by the team for critical bugfixes and documentation changes, and it is perfectly safe to continue to use them. However, new features will NOT be added to them.
Bootstrap 4 Basic Template
We have created a responsive starter template with Bootstrap 4. You are free to modify, save, share, and use it in your projects:
Bootstrap References
A complete list of all Bootstrap 4 CSS classes with description and examples:
If you want to do more with Bootstrap components, see our complete Bootstrap 4 JavaScript/jQuery reference - all with "Try it Yourself" examples:
Bootstrap 4 Exercises
Bootstrap 4 Quiz Test
Test your Bootstrap 4 skills at W3Schools!
Did You Know?
W3.CSS is an excellent alternative to Bootstrap 4.
W3.CSS is smaller, faster, and easier to use.
If you want to learn W3.CSS, go to our W3.CSS Tutorial.