30-seconds-of-code
30-seconds-of-code copied to clipboard
Input field is not as per the accessibility and HTML standards
In HTML, span is used to create the prefix for the input field, which is not interactive if the user wants to focus on the input field when clicking on the prefix text. Also, accessibility standards are not followed, like using a label for the input with for and id attributes in the respective element.