Create a native product purchase form
Build a native purchase form with grouped variants, constrained quantity, optional delivery notes, and an unambiguous submit action.Description
Requirements
Place one labelled purchase section and its form inside exactly one main landmark.
Group at least two required variant radio inputs in a fieldset with a visible legend.
Label a required number input with integer min one, max ten, and value one.
Associate a textarea with a visible optional delivery-note label.
Expose product name and price as visible text associated with the form.
Use a challenge-control button with type submit and a specific purchase label.
Keyboard form
Tab through variant, quantity, note, and purchase
Every control has a visible associated label
Place one labelled purchase section and its form inside exactly one main landmark.
Quantity
Enter zero or eleven
Native min and max constraints mark the input invalid
Group at least two required variant radio inputs in a fieldset with a visible legend.
Constraints
Use native semantic HTML before adding ARIAKeep every required label and state available as visible textDo not use scripts, images of text, or layout tables
Hints
Hint 1
Start with the single-main-landmark behavior and make its observable result deterministic.
Hint 2
Model variant-fieldset independently before combining it with the remaining states.
Hint 3
Verify the boundary described by native-submit-control without changing caller-owned input.