【无标题】用html制作一个简单的注册页面(无功能)

  1. 在D盘新建一个自己学号命名的文件夹;
  2. 新建三个文件夹,分别命名为:images、js、css;
  3. 将提供的图片素材复制一份到images文件夹下;
  4. 启动hbuilder工具——文件——打开目录——打开自己的学号文件夹;
  5. 左hbuilder窗口左侧学号文件夹上右击——新建一html文件,命名为regist.html;
  6. 代码附上

    <!DOCTYPE html>

    <html>

    <head>

        <title>注册页面</title>

        <style>

            body {

                background-image: url('images/bjt.jpg');

                display: flex;

                flex-direction: column;

                align-items: center;

                justify-content: center;

                height: 100vh;

                margin: 0;

            }

        </style>   

    </head>

    <body>

        <h1>REGISTER</h1>

        <form>

            <label for="username">用户名称:</label><input type="text" id="username"><br>

            <label for="password">用户密码:</label><input type="password" id="password"><br>

            <label for="confirmPassword">确认密码:</label><input type="password" id="confirmPassword"><br>

            <label for="userType">用户类型:</label>

            <select id="userType">

                <option value="企业用户">企业用户</option>

                <!-- 可以添加其他用户类型选项 -->

            </select><br>

            <label>用户性别:</label>

            <input type="radio" name="gender" value="男">男

            <input type="radio" name="gender" value="女" checked>女<br>

            <label for="hobbies">兴趣爱好:</label>

            <input type="checkbox" value="游泳">游泳<br>

            <label for="birthdate">出生日期:</label><input type="date" id="birthdate"><br>

            <label for="email">电子邮件:</label><input type="email" id="email"><br>

            <label for="intro">自我简介:</label><textarea id="intro"></textarea><br>

            <input type="submit" value="注册">

        </form>

    </body>

    </html>

    上面插入的图片要选择自己images里面的哦
    效果图放如下
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值