Check out example codes for "overlay text input html". It will help you in understanding the concepts better.

Code Example 1

<input type="text" id="Name" placeholder="Name">

Learn ReactJs, React Native from akashmittal.com