Select dropdowns (select and option)
An HTML element placed inside <select> to provide one choice in a dropdown. Its value attribute is sent when the form submits; its text content is what the user sees.
What it does: value="m" is what gets sent to the server. 'Medium' is the human-readable label the user sees in the dropdown. name on select and value on each option together make the form submission meaningful — size=s or size=l. <select> is the HTML element for dropdowns. <dropdown> is not a valid HTML element. The value attribute holds the submitted data. The visible text is placed between the <option> and </option> tags. HTML tag names must be lowercase. <SELECT> is non-standard — use <select>. Adding the selected attribute to an <option> makes it the default choice. There is no 'default' attribute for options.
Common mistakes: HTML tag names must be lowercase. <SELECT> should be written as <select>. HTML tag names must be lowercase. <OPTION> and </OPTION> should be <option> and </option>.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<option>Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →