📚 › HTML: build the structure of a web page
12. More form controls: select, textarea, checkbox, radio, button
Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.
select makes a drop-down list with option elements. textarea is a multi-line text box. A checkbox lets people tick several choices, and radio buttons let them pick one from a group that shares the same name.
button sends the form. Use type="submit" for submitting and type="button" for other actions.
Ver ejemplo
<select name="city"><option>Dhaka</option><option>Sylhet</option></select>
<textarea name="msg" rows="3"></textarea>
<input type="checkbox" name="news"> News
<button type="submit">Send</button>
✍️ Ahora te toca
Add a select named level with options Beginner and Advanced, and a submit button that says Go.