The following code implements a prompt message for what to input when the user stays in the text input box, improving user engagement.
Before entering content, the display is as shown in Figure 1
Picture 1
When the username text box is focused, the effect is as shown in Figure 2
Picture 2
When the password text box is focused, the effect is as shown in Figure 3
Figure 3