Tutorial Bootstrap 4

O Bootstrap 4 é uma versão mais recente do Bootstrap , que é a estrutura HTML, CSS e JavaScript mais popular para o desenvolvimento de sites responsivos e voltados para dispositivos móveis.

Bootstrap 4 é totalmente gratuito para baixar e usar!

Comece a aprender Bootstrap 4 agora »

Aprenda Bootstrap 4


Experimente você mesmo Exemplos

Este tutorial do Bootstrap 4 contém centenas de exemplos do Bootstrap 4.

Com nosso editor online, você pode editar o código e clicar em um botão para visualizar o resultado.

Página Bootstrap Responsiva

Exemplo de 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>

Clique no botão "Experimente você mesmo" para ver como funciona.



Bootstrap 5 vs. Bootstrap 3 e 4

Este tutorial segue o Bootstrap 4 , que foi lançado em 2018, como uma atualização para o Bootstrap 3 , com novos componentes, stylesheetc mais rápido, mais capacidade de resposta, etc.

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

Test Yourself With Exercises

Exercise:

Use a Bootstrap class to center the following text:

<p class=""> Hello World!</p>


Bootstrap 4 Quiz Test

Test your Bootstrap 4 skills at W3Schools!

Start Bootstrap 4 Quiz!


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.