A select and a number in HTML & CSS

HTML & CSS interview exercise on Forms, difficulty 2 of 3. Solve it in the editor beside a worked example; the tests run the moment you do.

A shipping form: a labelled select named country with a disabled placeholder option ("Choose a country") selected by default and at least four real countries, each with a short value; then a labelled number input named quantity that only accepts whole numbers from 1 to 10, starting at 1.

Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.

More Forms in HTML & CSS

All HTML & CSS exercises · Other languages and frameworks