Home >Web Front-end >HTML Tutorial >There are two default ways to display text in input_html/css_WEB-ITnose

There are two default ways to display text in input_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:281171browse

First Note:

placeholder attribute specifies a prompt to help the user fill in the input field. The value will not be submitted, and the prompt will be displayed when the input field is empty, and will be displayed when the input field is empty. Disappears when the field receives focus.

Such as

The value attribute specifies the value of the input element, and the value will be submitted

such as

Statement:
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