Home > Web Front-end > HTML Tutorial > 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

醉折花枝作酒筹
Release: 2021-04-26 11:39:18
forward
4832 people have browsed it

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>
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template