This example shows a simple contact form using Bootstrap form controls. It includes a text input for name, an email input, a textarea for message, and a submit button. Labels and ARIA labels improve accessibility.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Form Controls Example</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<main class="container mt-5">
<h1>Contact Us</h1>
<form>
<div class="mb-3">
<label for="nameInput" class="form-label">Name</label>
<input type="text" class="form-control" id="nameInput" placeholder="Enter your name" aria-label="Name">
</div>
<div class="mb-3">
<label for="emailInput" class="form-label">Email address</label>
<input type="email" class="form-control" id="emailInput" placeholder="name@example.com" aria-label="Email address">
</div>
<div class="mb-3">
<label for="messageInput" class="form-label">Message</label>
<textarea class="form-control" id="messageInput" rows="4" placeholder="Write your message here" aria-label="Message"></textarea>
</div>
<button type="submit" class="btn btn-primary">Send</button>
</form>
</main>
</body>
</html>