Blogger Information
Blog 32
fans 0
comment 0
visits 19977
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3月19日作业
田亢的博客
Original
496 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>用户注册例子</title>



</head>
<body>

<fieldset>
    <legend align="left" >
        <h2>注册界面</h2>
    </legend>

<form action=""  method="post">

<table border="0" bgcolor="black" cellspacing="0" cellpadding="10" width="500" align="center" >

    <caption><h2>用户信息表</h2></caption>


    <tr bgcolor="aqua">
        <th colspan="2">
 用户注册
        </th>

    </tr>
    <tr bgcolor="aqua">
        <th>
            <label for="account">用户名:</label>

        </th>
        <td>
            <input type="text" value="" id="account" maxlength="40" name="inputyourname" placeholder="请输入你的名字">
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th>
            <label for="password">密码:</label>

        </th>
        <td>
            <input type="password" name="inputyourpsw" value="" maxlength="20" id="password">
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th>
            <label for="password">头像:</label>

        </th>
        <td>
            <img src="../3月19日源码/images/4.jpg" height="30">

            <input type="file" id="" name="photo" accept="image/*">
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th>性别:</th>
        <td>
 男<input type="radio" name="sex">
 女<input type="radio" name="sex">
 保密<input type="radio" name="sex" checked>
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th>

 爱好
        </th>
        <td>
            <input type="checkbox" checked name="love[]">唱歌
            <input type="checkbox" name="love[]">跳舞
            <input type="checkbox" name="love[]">绘画
            <input type="checkbox" name="love[]">书法
            <input type="checkbox" name="love[]">篮球 <br>
            <input type="checkbox" name="love[]">足球
            <input type="checkbox" name="love[]">乒乓球
            <input type="checkbox" name="love[]">游泳
            <input type="checkbox" name="love[]">溜冰

        </td>
    </tr>
    <tr bgcolor="aqua">

        <th>家乡:</th>
        <td>
            <select name="" >
                <optgroup label="选项">
                    <option>选项一</option>
                    <option>选项二</option>
                    <option>选项三</option>
                    <option>选项四</option>
                    <option>选项五</option>
                </optgroup>
                <optgroup label="选项">
                    <option>选项六</option>
                    <option>选项七</option>
                    <option>选项八</option>
                    <option>选项九</option>
                    <option>选项十</option>
                    <option selected>选项十一</option>
                </optgroup>
            </select>
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th>自我介绍:</th>
        <td>
            <textarea name="请输入自我介绍"  cols="50" rows="10">
 请输入自我介绍
            </textarea>
        </td>
    </tr>
    <tr bgcolor="aqua">
        <th colspan="2">
            <input type="submit" value="我要注册">
            <button>我要注册</button>
        </th>
    </tr>


</table>
</form>
</fieldset>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

WechatIMG42.jpegWechatIMG43.jpeg

Correction status:qualified

Teacher's comments:作业已检查! 手写代码未提交!请及时提交!
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post