用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 = "选项的意义">

相关文章

HTML代码中要想改变字体颜色,常常需要使用CSS样式表。CSS是...
HTML代码如何让字体盖住图片呢?需要使用CSS的position属性及...
HTML代码字体设置 在HTML中,我们可以使用标签来设置网页中的...
在网页设计中,HTML代码的字体和字号选择是非常重要的一个环...
HTML(Hypertext Markup Language,超文本标记语言)是一种用...
外链是指在一个网页中添加一个指向其他网站的链接,用户可以...