Home > Article > Web Front-end > How to add prompt text to the input text box and disappear when filling in the content
This article will introduce to you how to add prompt text to the input text box and disappear when filling in the content. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
Add prompt text in the input text box and disappear when filling in the content:
Use placeholder attribute as prompt
<input placeholder="提示语..."></input>
Recommended learning: html video tutorial
The above is the detailed content of How to add prompt text to the input text box and disappear when filling in the content. For more information, please follow other related articles on the PHP Chinese website!