Pesquisar neste blog

19/11/2022

Formulário 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-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5
IDxbcnCeuOxjzrPF/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 action="">
<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><br><p>Sem Bootstrap</p>
<input type="text" placeholder="Digite seu texto aqui"><br>
<input type="checkbox">
<input type="radio">
<input type="range">
<select>
<option value="">Opção 1</option>
<option value="">Opção 2</option>
</select>
<textarea name="" id="" cols="30" rows="10">Sem Bootstrap</textarea>
</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 no navegador



Nenhum comentário: