这篇文章主要为大家展示了HTML仿写百度首页的示例代码,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带大家一起来研究并学习一下“HTML仿写百度首页的示例代码”这篇文章吧。
html的全称为超文本标记语言,它是一种标记语言,包含了一系列标签.通过这些标签可以将网络上的文档格式统一,使分散的Internet资源连接为一个逻辑整体,html文本是由html命令组成的描述性文本,html命令可以说明文字,图形、动画、声音、表格、链接等,主要和css+js配合使用并构建优雅的前端网页。
HTML仿写百度首页的示例代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
a {
color: black;
}
#header {
text-align: right;
height: 38px;
line-height: 38px;
}
#content {
text-align: center;
}
.content-top img {
width: 270px;
}
.btn {
width: 700px;
height: 38px;
margin: 10px auto 30px;
}
.btn input {
width: 550px;
height: 38px;
border: 1px solid #dddddd;
font-size: 15px;
}
.btn a {
background-color: #3385ff;
width: 100px;
height: 38px;
float: right;
text-align: center;
line-height: 38px;
color: white;
text-decoration: none;
}
#footer {
margin-top: 100px;
}
.erwei,
.footer-t,
.footer-btn {
text-align: center;
}
.erwei p {
font-weight: bold;
}
</style>
</head>
<body>
<div id="header">
<a href="###" target="_blank">新闻</a>
<a href="###" target="_blank">hao123</a>
<a href="###" target="_blank">地图</a>
<a href="###" target="_blank">视频</a>
<a href="###" target="_blank">贴吧</a>
<a href="#" class="no-weight">登录</a>
<a href="#" class="no-weight">设置</a>
</div>
<div id="content">
<div class="top">
<!--src:资源的缩写;alt:如果网速图片显示不出来,就显示文字-->
<img src="https://cache.yisu.com/upload/information/20200318/90/8774.jpg">
</div>
<div class="btn">
<!--type:定义单行输入的文字;href:链接URL-->
<input type="text">
<a href="###">百度一下</a>
</div>
</div>
<div id="footer">
<div class="erwei">
<img src="https://cache.yisu.com/upload/information/20200318/90/8775.jpg" />
<p>百度</p>
</div>
<div class="footer-t">
<a href="###" target="_blank">把百度设为主页</a>
<a href="###" target="_blank">关于百度</a>
<a href="###" target="_blank">About Baidu</a>
<a href="###" target="_blank">百度推广</a>
</div>
<div class="footer-btn">
©2018 Baidu
<a href="###">使用百度前必读</a>
<a href="###">意见反馈</a> 京ICP证030173号
<img src="img/1.PNG">
<a href="###">京公网安备11000002000001号<img src="img/2.PNG" /></a>
</div>
</div>
</body>
</html>
以上就是关于“HTML仿写百度首页的示例代码”的内容,如果改文章对你有所帮助并觉得写得不错,劳请分享给你的好友一起学习新知识,若想了解更多相关知识内容,请多多关注亿速云行业资讯频道。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。