Practical Exercise 8: Form with Selection and Radio Fields
Learn how to create an HTML form with selection and radio fields. Discover how to use select tags and radio buttons.
Activity
Add selection fields to the previous form.<select>and radio buttons<input type="radio">
Interactive Solution
Solution with complete HTML code
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<title>Formulario con Selección y Radio</title>
</head>
<body>
<h1>Formulario</h1>
<form>
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre" />
<br />
<label for="email">Correo Electrónico:</label>
<input type="email" id="email" name="email" />
<br />
<label for="genero">Género:</label>
<input type="radio" id="masculino" name="genero" value="masculino" />
Masculino
<input type="radio" id="femenino" name="genero" value="femenino" />
Femenino
<br />
<label for="pais">País:</label>
<select id="pais" name="pais">
<option value="argentina">Argentina</option>
<option value="brasil">Brasil</option>
<option value="chile">Chile</option>
</select>
<br />
<button type="submit">Enviar</button>
</form>
</body>
</html>
info
📝Continue learning about this topic by clicking here👉 Creating forms with HTML