web前端作业1

该篇文章介绍了HTML中创建用户注册表单的结构,包括用户名、密码、性别选择、爱好选项、省份选择以及自我介绍文本框。同时展示了使用CSS实现五彩导航链接样式的例子。

笔记:

表格:

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<html>
<body>
  <table>
    
    <table width="400px" border="2" cellspacing="0"  bgcolor="grey">
        <tbody>
            <tr >
                <form action="">
                <td> 用户注册</td>
                </form>
            </tr>
        </tbody>
     
        <tbody>
            <tr align="center">
                <td> 用户名</td>
                <td><input type="txet"  name="usename"></td>
            </tr>
        </tbody>
        <tbody>
            <tr align="center">
               <td>密码</td>
               <td><input type="password"</td>
            </tr>
        </tbody>
   
        <tbody>
            <tr align="center" >
                <td>性别</td>
                <td><label><input type="radio"  checked name="sex" value="nan">男</label>
                <input type="radio" name="sex"  value="nv">女</td>
        
            </tr>
        </tbody>
        <tbody>
            <tr align="center" >
                <td> 爱好</td>
                <td> <input type="checkbox" name="hobby">写作
                    <input type="checkbox" name="hobby">听音乐 
                    <input type="checkbox" name="hobby">体育
                    </td>
            </tr>
        </tbody>
        <tbody>
            <tr align="center" >
                <td> 省份</td>
                <td> <form action="">
                    <select name="city" multiple>
                        <option value="陕西">陕西</option>
                        <option value="广州">广州</option>
                        </select>
                        </form>
                    </select></td>
            </tr>
        </tbody>
        <tbody>
            <tr align="center" >
                <td> 自我介绍</td>
                <td><form action="">
                    <textarea name="liuyan" cols="32" rows="10" maxlength="25" "></textarea>
                </form>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr align="center" >
            <td><input type="submit" value="提交"> <input type="reset" value="重置"></td>
            
        </tbody>
    </table>

</table>
</body>
</html>

五彩导航:

<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <style>
    
    .q1:link{
          background-color: red;
    }
    .q1:visited{
          background-color: aqua;
    }
    .q1:hover {
          background-color: chartreuse;
    }

    .q2:link{
          background-color: red;
    }
    .q2:visited{
          background-color: rgb(228, 240, 16);
    }
    .q2:hover {
          background-color: rgb(17, 159, 242);
    }

    .q3:link{
          background-color: red;
    }
    .q3:visited{
          background-color: rgb(62, 142, 62);
    }
    .q3:hover {
          background-color: rgb(227, 27, 207);
    }

    .q4:link{
          background-color: red;
    }
    .q4:visited{
          background-color: rgb(115, 158, 232);
    }
    .q4:hover {
          background-color: rgb(237, 156, 17);
    }

    .q5:link{
          background-color: red;
    }
    .q5:visited{
          background-color: rgb(255, 0, 255);
    }
    .q5:hover {
          background-color: rgb(93, 83, 185);
    }
    </style>
</head>
<body>
 
       <a href=" " class="q1">五彩导航</a>
        <a href=" " class="q2">五彩导航</a>
        <a href=" " class="q3">五彩导航</a>
        <a href=" " class="q4">五彩导航</a>
        <a href=" " class="q5">五彩导航</a>

</body>
 
</html>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值