HTML/CSS class7 form表单


 
/*
 *Copyright  (c)  
 *All rights reserved.
 *文件名称: class8_form.html
 *作者: 郭栋
 *完成日期:2018年 8月14日
 *版本号:v1.0
 *问题描述:form表单练习
 *输入描述:
 *程序输出
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="">
<table align="center">


    <caption  style="font-size: 20pt">欢迎注册某度会员<hr/></caption>


    <tr>

        <td>用户名:  </td>
        <td><input type="text"></td>
    </tr>
    <tr>
        <td>密码:  </td>
        <td><input type="posword"></td>
    </tr>
    <tr>
        <td>确认密码:   </td>
        <td><input type="password"></td>
    </tr>
    <tr>
        <td>请选择市:   </td>
        <td>
            <select>
                <optgroup label="中国">
                <option value="1">北京</option>
                <option value="2">上海</option>
                <option value="3">广州</option>
                </optgroup>
                <optgroup label="外国">
                    <option value="1">英国</option>
                    <option value="2">美国</option>
                    <option value="3" selected>Chicago</option>
                </optgroup>
            </select>
        </td>
    </tr>
    <tr>
        <td>请选择性别:</td>
        <td>
            <input type="radio" id="male" name="sex" checked>
            <label for="male">男</label>
            <input type="radio" id="female" name="sex">
            <label for="female">女</label>
            <input type="radio" id="un_sure" name="sex">
            <label for="un_sure">不好说</label>
        </td>
    </tr>
    <tr>
        <td>请选择职业:</td>
        <td>
            <input type="radio" id="student" name="profession" checked>
            <label for="student">学生</label>
            <input type="radio" id="teacher" name="profession">
            <label for="teacher">教师</label>
            <input type="radio" id="others" name="profession">
            <label for="others">其他</label>
        </td>
    </tr>
    <tr>
        <td>请选择爱好:</td>
        <td>
            <fieldset>
                <legend>你的爱好:</legend>
                <input type="checkbox" id="basketball" checked>
                <label for="basketball">打篮球</label>
                <input type="checkbox" id="runing">
                <label for="runing">跑步</label>
                <input type="checkbox" id="reading">
                <label for="reading">阅读</label>
                <input type="checkbox" id="netting">
                <label for="netting">上网</label>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td>备注:</td>
        <td>
            <textarea cols="30"  placeholder="这里是备注内容" style="resize: none"></textarea>
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <input type="submit" value="提交">
        <input type="reset" value="重置">
        </td>

    </tr>

</table>
</form>
</body>
</html>
form表单

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

郭_栋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值