Home  >  Article  >  Web Front-end  >  How to add prompt text to the input text box and disappear when filling in the content

How to add prompt text to the input text box and disappear when filling in the content

醉折花枝作酒筹
醉折花枝作酒筹forward
2021-04-26 11:39:184802browse

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.

How to add prompt text to the input text box and disappear when filling in the content

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete
Previous article:How to remove html tagsNext article:How to remove html tags