The below is the static form with html code snippet that is used for this example. The reason for providing the code snippet is that one can access the source code easily even if it is viewed in the mobile platforms. In general, it might not be very easy to access the source code of the form when this is viewed in the mobile platforms. This example makes you understand how the labels are associated with the ‘aria-label’ technique when you run the screen reader on this form across all the platforms.
First name:
Last name:
Age:
Comments:
I agree terms and conditions
Source Code
Using Aria-Label
First name:
Last name:
Age:
Comments:
I agree terms and conditions