Starlit Daily

📚 › HTML: build the structure of a web page

12. More form controls: select, textarea, checkbox, radio, button

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.

Show example

<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>

✍️ Your turn

Add a select named level with options Beginner and Advanced, and a submit button that says Go.

← Back to course