'How to position placeholder text inside a input?

I have a text input

enter image description here

I want to place it as in this.

enter image description here

I'm requesting help from community for this. Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source