Web 表单

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单</title>
</head>
<body>
<form>
    <fieldset>
        <legend>登录</legend>
        <label for="username">用户名</label>
        <input type="email" id="username" name="username" placeholder="用户名" tabindex="1" required="true"/>

        <label for="password">密码</label>
        <input type="email" id="password" name="password" placeholder="密码" tabindex="2" required="true"/>

        <label for="staySigned">
            <input type="checkbox" id="staySigned" name="staySigned" tabindex="3"/>
            记住我
        </label>

        <input type="submit"  value="登录" tabindex="4"/>
    </fieldset>
</form>
</body>
</html>

 

 

参考资料:

jquery.placeholder.min.js让你的IE浏览器支持placeholder

jQuery插件 -- Form表单插件jquery.form.js

jQuery验证控件jquery.validate.js使用说明+中文API

 

posted @ 2017-04-09 11:51  linyongqin  阅读(93)  评论(0编辑  收藏  举报