How to create a label inside an element? July 5, 2023 by Tarik If you’re using HTML5, you can use the placeholder attribute. <input type="text" name="user" placeholder="Username">