HTML input field hint

后端 未结 9 1506
轻奢々
轻奢々 2021-01-01 09:23

I want to provide the user with a hint on what he needs to enter into my text field. However, when I set the value, it does not disappear once a user clicks on the text fiel

9条回答
  •  渐次进展
    2021-01-01 09:57

    With HTML5, you can now use the placeholder attribute like this:



    http://www.w3schools.com/tags/att_input_placeholder.asp

提交回复
热议问题