Should those single inputs be wrapped in <form>
tags so that screen readers can announce them as such?
Sometimes in our project (Web based SaaS) we use single input fields to operate some controls over the visible UI. Some common cases would be:
- One or two comboboxes (dropdown inputs) to filter the content of a list/table
- A switch to enable/disable some part of the visible UI
- A date picker to move a calendar to the input date
All those don't need a confirmation button to have effect so, should they be wrapped into a <form>
tag to be properly accessible?
<input>
without<form>
around it is valid HTML.