define checkbox value code example
Example 1: checkbox value
<input type="checkbox" name="vehicle1" value="Bike">
The checkbox value is 'Bike'.
Example 2: value in checkbox
<form>
<div>
<input type="checkbox" id="subscribeNews" name="subscribe" value="newsletter">
<label for="subscribeNews">Subscribe to newsletter?</label>
</div>
<div>
<button type="submit">Subscribe</button>
</div>
</form>