Pesquisar neste blog

25/11/2022

Tabela com Bootstrap em HTML

<!DOCTYPE html>
<html lang="en">
<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">
<meta http-equiv="refresh" content="5">
<title>Bootstrap - Tipografia</title>

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous">

</head>
<body class="container mt-2">
<table class="table table-hover table-striped table-sm">
<thead>
<tr class="table-warning">
<th>1</th>
<th>x</th>
<th>2</th>
<th>=</th>
<th>Resultado</th>
</tr>
</thead>
<body>
<tr class="table-info">
<td>5</td>
<td>x</td>
<td>5</td>
<td>=</td>
<td>25</td>
</tr>
<tr class="table-secondary">
<td>6</td>
<td>x</td>
<td>4</td>
<td>=</td>
<td>24</td>
</tr>
<tr class="table-danger">
<td>7</td>
<td>x</td>
<td>7</td>
<td>=</td>
<td>49</td>
</tr>
<tr class="table-dark">
<td>8</td>
<td>x</td>
<td>5</td>
<td>=</td>
<td>40</td>
</tr>
<tr class="table-success">
<td>9</td>
<td>x</td>
<td>8</td>
<td>=</td>
<td>72</td>
</tr>
<tr class="table-ligh">
<td>10</td>
<td>x</td>
<td>7</td>
<td>=</td>
<td>70</td>
</tr>
</body>
</table>

<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous">
</script>

</body>
</html>

Saída gerada










Nenhum comentário: