C10第一次作业:制作一个HTML页面

使用html写一个网页,要求满足以下条件:
(1)网页标题:网络安全C10期课程
(2)网页背景颜色:蓝色
(3)网页中含有一个超链接,点击即可跳转至百度
(4)如果在网页中不做任何操作,5秒后跳转至马哥教育官网

HTML页面代码实现

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="refresh" content="5;url=https://www.magedu.com/">
    <title>网络安全C10期课程</title>
    <style>
        .center-text {
            text-align: center;
        }
        body{
             margin: 0;
            }
        #footer {
                height: 40px;
                line-height: 40px;
                position: fixed;
                bottom: 0;
                width: 100%;
                text-align: center;
                background: rgb(2, 2, 103);
                color: rgb(217, 217, 228);
                font-family: Arial;
                font-size: 18px;
                letter-spacing: 5px;
            }
    </style>
</head>
<body bgcolor="blue">
   <center>
     <h1>网络安全C10期课程</h1> 
    </center>
    <hr /><!--分隔线-->
   <div class="center-text">
   <a href="https://www.baidu.com"><img src="百度.png" alt="显示失败"></a><!--点击图片跳转到百度页面-->
   </div>
   <div id="footer">5秒后自动跳转至马哥教育官网 </div><!--底部说明-->
</body>
</html>

HTML页面展示

请添加图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值