html5标签placeholder使用
如意编程网
收集整理的这篇文章主要介绍了
html5标签placeholder使用
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
<!DOCTYPE HTML> <html> <body> <form action="/example/html5/demo_form.asp" method="get"> <input type="search" name="user_search" placeholder="Search W3School" /> <input type="submit" /> </form> </body> </html>
定义和用法
placeholder 属性提供可描述输入字段预期值的提示信息(hint)。
该提示会在输入字段为空时显示,并会在字段获得焦点时消失。
总结
以上是如意编程网为你收集整理的html5标签placeholder使用的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: html5 css3 loading 效
- 下一篇: LEADTOOLS HTML5 SDK使