radio checked code example
Example 1: html radio button checked
<input type="radio" id="huey" name="drone" value="huey"
checked>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio-->
Example 2: html radio only one checked
<!--Just manke both names equal -->
<input type="radio" name="options" id="1"/>
<input type="radio" name="options" id="2"/>
Example 3: input radio html
<form>
<p>Veuillez choisir la meilleure méthode pour vous contacter :</p>
<div>
<input type="radio" id="contactChoice1"
name="contact" value="email">
<label for="contactChoice1">Email</label>
<input type="radio" id="contactChoice2"
name="contact" value="telephone">
<label for="contactChoice2">Téléphone</label>
<input type="radio" id="contactChoice3"
name="contact" value="courrier">
<label for="contactChoice3">Courrier</label>
</div>
<div>
<button type="submit">Envoyer</button>
</div>
</form>
Example 4: radio buttons
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
Example 5: radio selected
<input type="radio" id="huey" name="drone" value="huey"
checked>
Example 6: kak ispolzovat html checkbox
<input type="checkbox" onclick="checkFluency()" id="fluency" checked />