How to Create Data Collection Question and Answere Form?
SEO Help and Tips
How to Create Data Collection Question and Answere Form?
Head:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
Body:
<div class="container mt-3">
<h2>Answere the Questions</h2>
<p>You have need to choose only right answere:</p>
<form action="/action_page.php">
<label for="sel1" class="form-label">Select list (Mark one):</label>
<select class="form-select" id="sel1" name="sellist1">
<option>What's your pet name?</option>
<option>What's your nick name?</option>
<option>What's your motherborn city?</option>
</select>
<br>
<label for="sel2" class="form-label">Mutiple select list (hold shift to select more than one):</label>
<select multiple class="form-select" id="sel2" name="sellist2">
<option>Dhaka City</option>
<option>Pet name_white</option>
<option>Nick name_sky</option>
</select>
<button type="submit" class="btn btn-primary mt-3">Submit</button>
</form>
</div>
Answere in Checkbox:
Head:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
Body:
<div class="container mt-3">
<h2>Checkboxes</h2>
<p>To style a checkbox, use a container element with a .form-check class, and add .form-check-label to labels, and .form-check-input to the input with type="checkbox".</p>
<p>The form below contains three checkboxes. The first option is checked by default, and the last option is disabled:</p>
<form action="/action_page.php">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="check1" name="option1" value="something" checked>
<label class="form-check-label" for="check1">Option 1</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="check2" name="option2" value="something">
<label class="form-check-label" for="check2">Option 2</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" disabled>
<label class="form-check-label">Option 3</label>
</div>
<button type="submit" class="btn btn-primary mt-3">Submit</button>
</form>
</div>
Comments
Post a Comment
Thanks for your Comments.