Pesquisar neste blog

16/11/2022

Grade com Bootstrap em HTML

<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap</title>

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/
css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/
et3URy9Bv1WTRi" crossorigin="anonymous">
<!--atualiza a página a cada 3 segundos-->
<meta http-equiv="refresh" content="3">

</head>
<body> <!--text inverte a cor do texto-->
<h1>Blog da engenharia cotidiana</h1>
<div class="row bg-dark">
<div class="col bg-warning">
<p>Linha 1 | Coluna 1</p>
</div>
<div class="col bg-danger">
<p>Linha 1 | Coluna 2</p>
</div>
<div class="col bg-info">
<p>Linha 1 | Coluna 3</p>
</div>
</div>

<div class="row bg-primary">
<div class="col bg-info">
<p>Linha 2 | Coluna 1</p>
</div>
<div class="col bg-success">
<p>Linha 2 | Coluna 2</p>
</div>
<div class="col bg-warning">
<p>linha 2 | coluna 3</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/
bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqME
jwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous">
</script>
</body>
</html>

Saída gerada no navegador











Nenhum comentário: