代码段:
<!DOCTYPE HTML> <html> <body> <form action="/example/html5/demo_form.asp" method="get"> <input type="search" name="user_search" placeholder="用户名" /> <input type="submit" /> </form> </body> </html>
效果展示:
附加:
<input type="password" name="password" placeholder="请输入您的密码" /> //隐藏输入的内容,常用于密码输入框