web基础,用html元素制作web页面

观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。

用div,form制作登录页面,尽可能做得漂亮。

练习使用下拉列表选择框,无序列表,有序列表,定义列表。

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习</title>
</head>
<body>
<div id="container" style="width: 400px">
    <div id="header" style="background-color: coral"><h2 align="center">请登录</h2></div>
    <div id="content" style="background-color: aquamarine">
        <form>
            Username:<input type="text" name="name.1">
            <br>
            Password:<input type="password" name="name.2">
            <br>
            <input type="radio" name="r1" value="stu">student
            <input type="radio" name="r2" value="tea">teacher
            <br>
            <input type="checkbox" name="c1" value="">记住我
            <br>
            <input type="button" value="login"> <a href="">忘记密码?</a>

        </form>
    </div>
    <div id="footer" style="background-color: coral"><p align="right">版权@mis15</p></div>
</div>
<hr>

    <div>
        <select>
            <option>收藏</option>
            <option>点赞</option>
            <option>评论</option>
        </select>
        <hr>
        <ul>
            <li>python</li>
            <li>html</li>
            <li>web</li>
            <li>java</li>
        </ul>
        <br>
        <ol>
            <li>python</li>
            <li>html</li>
            <li>web</li>
            <li>java</li>
        </ol>
    </div>
</body>
</html>

 

转载于:https://www.cnblogs.com/lwb9511/p/7680178.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值