There are even films about how bad this idea is (although you make it compliant)…
https://briefs.video/videos/what-happened-to-text-inputs/
What Happened To Text Inputs?
briefs.video
> Am 22.02.2023 um 16:16 schrieb Education Dynamics <eddyuxcro@gmail.com>:
>
> Hello!
> We want to get more clarification about the placement of the labels for forms.
>
> We know the recommendation for labels is that they should stay close to the form field, either right or left. However, we were wondering if we will have accessibility issues if the label is placed in the middle of the field (like a placeholder), and once users click to type on the field, the label moves up.
>
> The code setup of the element will be as a label but with a float animation. (see the example attached)
>
> Please let us know what the answer to this question is.
>
> Thank you!
> <Example Placement.png>