用html简单做一个注册页面。

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>
    <style>
        body {
            background-image: url("./1.png");
        }
    </style>
</head>

<body>
    <table border="1" width="800" height="500" align="center" background-color="#FF6699">
        <tr>
            <td bgcolor="#F3F3FA">
                <h2 align="center"><img src="./2.png" alt="" height="40" widt="50">&nbsp;&nbsp;&nbsp;&nbsp;用户注册</h2><br>
                <form action="" align="center">
                    用户名称:<input type="text" placeholder="请输入用户名!" style="width: 400px;height: 30px;"><br><br> 登录密码:
                    <input type="password" placeholder="请输入登录密码!" style="width: 400px;height: 30px;"><br><br> 重复密码:
                    <input type="password" placeholder="请输入您的确认密码!" style="width: 400px;height: 30px;"><br><br> 电子邮箱:
                    <input type="text" placeholder="请输入您的邮箱!" style="width: 400px;height: 30px;"><br><br> 性别:
                    <input type="radio"> 男 <input type="radio">女
                    <br><br> 职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业:
                    <select name="fruit" style="height: 30px;width: 400px;" align="left">
                        <option value="1">老师</option>
                        <option value="2" selected="selected">学生</option>
                        <option value="3">国家公务人员</option>
                        <option value="4">其他</option>
                    </select><br><br> 爱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好: <label for="awards"></label><textarea id="awards" cols="1" rows="3" style="width: 400px;height: 100px;">书法\乐器\运动编程\</textarea><br><br>
                    <hr><br>
                    <input type="button" value="注册" / style="width: 100px;height: 25px;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="reset" value="重置" / style="width: 100px;height: 25px;">
                </form>
            </td>
        </tr>
    </table>
</body>

</html>

下面是效果图

主要用到了这些:
                1、text
                    这个表单标签应该输入一个文本
                2、button
                    表单标签是一个按钮
                3、file
                    上传文件
                4、image
                    上传图片
                5、password
                    输入密码(隐藏输入的内容)
                6、radio
                    单选框 通常需要和js配合使用,实现单选的效果
                    有一个checked属性,作用是可以默认选中单选框
                7、reset
                    重置 清空当前form标签内的所有表单数据 

                8、下拉选项
                    <select name = "选项的意义">

  • 8
    点赞
  • 83
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值