Pesquisar neste blog

28/11/2022

Caixa de diálogo 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">
<meta http-equiv="refresh" content="7">
<title>Bootstrap - Modal</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">

<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#caixa-escondida">
Iniciar
</button>
<!-- Modal -->
<div class="modal fade" id="caixa-escondida"-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<!--modal-xl, modal-lg, modal-lgmodal-sm , modal-dialog-centered -->
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title fs-5" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Aqui vai um texto
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Open</button>
</div>
</div>
</div>
</div>

<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












Referência:


27/11/2022

Cards 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">
<meta http-equiv="refresh" content="5">
<title>Bootstrap - Cards</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">

<div class="row g-3 my-5">
<div class="col-3">
<div class="card bg-info">
<img src="https://upload.wikimedia.org/wikipedia/commons/1/1e/Bald_Eagle_Portrait.jpg"
class="card-img-top" alt="">
<div class="card-body">
<h5 class="cart-title">Águia americana</h5>
<p class="card-text">Imagem de uma águia americana ...</p>
<a href="#" class="btn btn-primary">Saiba mais</a>
</div>
</div>
</div>

<div class="col-5">
<div class="card bg-primary">
<img src="https://media.gettr.com/group25/getter/2022/05/01/22/d251c839-8cb5-b5cd-81b1-833955b55b56/2d086665a32adb08cf34bdda1ddcaa7b_500x0.jpg"
class="card-img-top" alt="">
<div class="card-body">
<h5 class="cart-title">Águia brasileira</h5>
<p class="card-text">Imagem de uma águia brasileira ...</p>
<a href="#" class="btn btn-primary">Saiba mais</a>
</div>
</div>
</div>

<div class="col-3">
<div class="card bg-secundary">
<img src="https://www.trapp.com.br/wp-content/uploads/2022/09/Baixa_Flor_roxa.jpg"
class="card-img-top" alt="">
<div class="card-body">
<h5 class="cart-title">Beija flor</h5>
<p class="card-text">Imagem de um beija flor ...</p>
<a href="#" class="btn btn-primary">Saiba mais</a>
</div>
</div>
</div>
</div>

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



















Referência:

26/11/2022

Alertas 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">
<meta http-equiv="refresh" content="5">
<title>Bootstrap - Alertas</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">

<div class="alert alert-warning alert-dismissible fade show" role="alert">
Bem vindo ao Bootstrap
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<div class="alert alert-success">
<a href="#" class="alert-link">enviado</a> com sucesso !
</div>

<label class="badge bg-primary">Emblema</label>
<br><br>

<div class="alert alert-warning alert-dismissible fade show" role="alert">
<h1><label class="badge bg-danger">Erro</label></h1>
Um erro ocorreu durante a execução do programa.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<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















Referência:


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










24/11/2022

Imagens 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-4 bg-dark">
<img src="https://cdn.pixabay.com/photo/2017/12/06/11/03/brazil-3001462_960_720.png"
class="rounded shadow-lg col-6">

<img src="https://i.vimeocdn.com/video/1363024700-2f81ea62bf2cf4836312196cb07fbdd856b1c013183594410704004994605b25-d_640x360.jpg"
class="img-thumbnail">

<img src="https://cdn.pixabay.com/photo/2021/03/16/05/12/fashion-6098757_960_720.jpg"
class="img-fluid col-3">
<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











23/11/2022

Tipografia em Bootstrap com 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="7">
<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">
<!-- class alinha do lado direito -->
<p class="text-primary display-1">Curso</p>
<p class="text-end text-danger display-6">Ánalise e Desenvolvimento de Sistemas</p>

<p class="text-center">Vida profissional</p>
O analista de sistemas analisa as operacionalidades das redes,
os sistemas de conexão e avalia
as ameaças de invasão. Planeja, especifica e desenvolve sistemas de
proteção de redes e de equipamentos de tecnologia da informação.
Investiga e monitora ataques. Estabelece procedimentos contra invasão
de redes e guerra eletrônica. Coordena equipes de trabalho. Vistoria,
realiza perícia, avalia, lauda e emite parecer técnico em sua área de
formação.



<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







22/11/2022

Botões com Bootstrap em HTML

<!-- FORMULÁRIOS -->
<!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">
<meta http-equiv="refresh" content="5"><!--atualiza a página a cada 3 segundos-->

</head>
<body class="container pt-5"> <!--text inverte a cor do texto-->
<!-- tag de formulários -->
<form>
<p>Com Bootstrap</p>
<input type="text" placeholder="Digite seu texto aqui" class="form-control">
<input type="checkbox" class="form-check-input">
<input type="radio" class="form-check-input">
<input type="range" class="form-range">
<select class="form-select">
<option value="">Opção 1</option>
<option value="">Opção 2</option>
</select>
<textarea class="form-comtrol">Com Bootstrap</textarea><!--form-control-->
<br><button>Enviar 1</button>
<br><button class="btn btn-primary">Enviar 2</button>
<br><button class="btn btn-secondary">Enviar 3</button>
<br><button class="btn btn-success">Enviar 4</button>
<br><button class="btn btn-warning">Enviar 5</button>
<br><button class="btn btn-outline-primary">Enviar 6</button><!--Muda a cor ao passar o mouse-->
<br><button class="btn btn-info">Enviar 7</button>
<br><button class="btn btn-dark">Enviar 8</button>
<br><button class="btn btn-light">Enviar 9</button>
<br><button class="btn btn-link">Enviar 10</button>
<br><a href="#" class="btn btn-dark">Aqui vai um link</a>
<br><input type="submit" class="btn btn-success" value="Enviar 11">
<br><button class="btn btn-primary btn-sm">Enviar 12</button>
<br><button class="btn btn-outline-primary btn-lg">Enviar 13</button>
<div class="d-grid">
<button class="btn btn-primary btn-sm">Enviar 14</button>
</div>



<br><br><p>Sem Bootstrap</p>
<input type="text" placeholder="Digite seu texto aqui"><br>
<br><input type="checkbox">
<br><input type="radio">
<br><input type="range"><br>
<select>
<option value="">Opção 1</option>
<option value="">Opção 2</option>
</select><br>
<textarea name="" id="" cols="30" rows="10">Sem Bootstrap</textarea>
<br><button>Enviar</button>
</form>

<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

20/11/2022

Box model 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-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5ID
xbcnCeuOxjzrPF/et3URy9Bv1WTRi"crossorigin="anonymous">
<meta http-equiv="refresh" content="5"><!--atualiza a página a cada 5 segundos-->

</head>
<body> <!--text inverte a cor do texto-->

<div class="container">
<p class="display-1 bg-warning">Título 1</p>
<span class="display-1 bg-warning border">Título 2</span><br><br>
<span class="display-1 bg-warning border border-primary border-5">Título 3
</span><br><br>
<p class="display-1 bg-warning border border-primary">Título 4</p>
<p class="display-1 bg-warning border border-primary border-5 m-5">
T´itulo 5</p>
<p class="display-1 bg-warning border border-primary border-5 m-5 p-5">
Título 6</p>
<p class="display-1 bg-warning border border-primary border-5 pt-5">
Título 7</p>
<p class="display-1 bg-warning border border-primary border-5 pb-5">
Título 8</p>
<p class="display-1 bg-warning border border-primary border-5 ps-5">
Título 9</p>
<p class="display-1 bg-warning border border-primary border-5 pe-0
text-end">Título 10</p>
<p class="display-1 bg-warning border border-primary border-5 mt-0
text-end">Título 11</p>
<p class="display-1 bg-warning border border-primary border-5 me-5
text-end">Título 12</p>
<p class="display-1 bg-warning border border-primary border-5 mx-0
text-end">Título 13</p>
<p class="display-1 bg-warning border border-primary border-5 my-0
text-end">Título 13</p>
</div>

<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 no navegador

























Palavras chave:

Box model with Bootstrap in HTML
Блочная модель с Bootstrap в HTML
HTML ਵਿੱਚ ਬੂਟਸਟਰੈਪ ਵਾਲਾ ਬਾਕਸ ਮਾਡਲ
HTML में बूटस्ट्रैप के साथ बॉक्स मॉडल
דגם Box עם Bootstrap ב-HTML
Boxmodell med Bootstrap i HTML
HTML मध्ये Bootstrap इत्यनेन सह बॉक्स मॉडल्
Model de caixa amb Bootstrap en HTML