HTML实例网页代码, 本实例适合于初学HTML的同学。该实例里面有设置了css的样式设置,有div的样式格局,这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。
精彩专栏推荐👇🏻👇🏻👇🏻👇🏻文末获取联系
❤ 【作者主页——获取更多优质源码】
❤ 【web前端期末大作业——毕设项目精品实战案例(1000套)】
1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。
2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。
代码如下(示例):以下仅展示部分代码供参考~
DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>月下拾花摄title>
<base>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/index.css">
head>
<body>
<div class="shortcut">
<div class="w">
<div class="ad fl">月下拾花摄--国内顶尖婚纱摄影品牌!div>
<div class="moreVer fr">
<a href="javascript:;" class="ver-phone">a>
<a href="javascript:;" class="ver-tmall">a>
<a href="javascript:;" class="ver-weibo">a>
div>
div>
div>
<div class="logoBar w clearfix">
<div class="logo fl">
<a href="">
<h1>月下拾花摄h1>
a>
div>
<div class="tell fr">div>
div>
<style>
.nav a{
color: #000 !important;
}
style>
<div class="nav w">
<div class="left-bg">div>
<ul>
<li class="nav-1">
<a href="">
<i>i>
<b>作品大赏b>
a>
li>
<li class="nav-2">
<a href="reason.html">
<i>i>
<b>品牌介绍b>
a>
li>
<li class="nav-3">
<a href="about.html">
<i>i>
<b>了解我们b>
a>
li>
<li class="nav-4">
<a href="news.html">
<i>i>
<b>最新资讯b>
a>
li>
<li class="nav-5">
<a href="showcase.html">
<i>i>
<b>服务报价b>
a>
li>
ul>
div>
<div class="carousel">
<div class="ad">
<ul>
<li><a href="#"><img src="picture/ad01.jpg" alt="">a>li>
<li><a href="#"><img src="picture/ad02.jpg" alt="">a>li>
<li><a href="#"><img src="picture/ad03.jpg" alt="">a>li>
<li><a href="#"><img src="picture/ad04.jpg" alt="">a>li>
ul>
<ol>ol>
div>
<div class="arr">
<span class="left">span>
<span class="right">span>
div>
div>
<div class="inland">
<div class="line">div>
<div class="titleTag">
<img src="picture/yangpian.png" alt="国内样片">
<p>月下拾花摄10年专注海南三亚婚纱照拍摄,专业三亚海景外景摄影,为了满足顾客更高个性化婚纱照的需求,打造全国高品位婚纱摄影领导品牌!p>
div>
div>
<div class="inlandShow w">
<ul class="clearfix">
<li class="show01">
<a href="javascript:;">
<img src="picture/inland01.jpg" alt="Flowers-bible">
<span class="small">
<ins>ins>
<b>Flowers-bible...b>
<i>Flowers-biblei>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>Flowers-bible...b>
<i>Flowers-biblei>
<s>s>
em>
span>
a>
li>
<li class="show02">
<a href="javascript:;">
<img src="picture/inland02.jpg" alt="马戏团">
<span class="small">
<ins>ins>
<b>马戏团b>
<i>circus-troupei>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>马戏团b>
<i>circus-troupei>
<s>s>
em>
span>
a>
li>
<li class="show03">
<a href="javascript:;">
<img src="picture/inland03.jpg" alt="最是长相思">
<span class="small">
<ins>ins>
<b>最是长相思b>
<i>nofollowi>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>最是长相思b>
<i>nofollowi>
<s>s>
em>
span>
a>
li>
ul>
<ul class="clearfix">
<li class="show04">
<a href="javascript:;">
<img src="picture/inland04.jpg" alt="粉墨春秋">
<span class="small">
<ins>ins>
<b>粉墨春秋b>
<i>fenmoi>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>粉墨春秋b>
<i>fenmoi>
<s>s>
em>
span>
a>
li>
<li class="show05">
<a href="javascript:;">
<img src="picture/inland05.jpg" alt="同桌的你">
<span class="small">
<ins>ins>
<b>同桌的你b>
<i>nofollowi>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>同桌的你b>
<i>nofollowi>
<s>s>
em>
span>
a>
li>
<li class="show06">
<a href="javascript:;">
<img src="picture/inland06.jpg" alt="花潮">
<span class="small">
<ins>ins>
<b>花潮b>
<i>nofollowi>
<s>s>
span>
<span class="big">
<ins>ins>
<em>
<u>u>
<b>花潮b>
<i>nofollowi>
<s>s>
em>
span>
a>
li>
ul>
div>
<div class="hot">
<div class="line">div>
<div class="titleTag">
<img src="picture/remen.png" alt="热门景点">
<p>三亚拾花摄专属拍摄基地:大小洞天、分界洲、蜈支洲、水晶教堂、凤凰岛、三亚湾、亚龙湾、一路向南、心海弯等,国内外婚纱摄影景点!p>
div>
div>
<div class="hotShow w">
<ul class="clearfix">
<li class="hot1">
<a href="javascript:void(0);">
<img src="picture/hot01.jpg" alt="三亚大小洞天">
<div>
<span>三亚大小洞天span>
div>
a>
li>
<li class="hot2">
<a href="javascript:void(0);">
<img src="picture/hot02.jpg" alt="三亚分界洲">
<div>
<span>三亚分界洲span>
div>
a>
li>
<li class="hot3">
<a href="javascript:void(0);">
<img src="picture/hot03.jpg" alt="三亚皇后湾">
<div>
<span>三亚皇后湾span>
div>
a>
li>
<li class="hot4">
<a href="javascript:void(0);">
<img src="picture/hot04.jpg" alt="三亚心海湾">
<div>
<span>三亚心海湾span>
div>
a>
li>
<li class="hot5">
<a href="javascript:void(0);">
<img src="picture/hot05.jpg" alt="一路向南">
<div>
<span>一路向南span>
div>
a>
li>
ul>
div>
<div class="slogan">
<div class="line">div>
<div class="titleTag">
<img src="picture/youshi.png" alt="品牌优势">
div>
div>
<div class="sloganShow w">
<ul class="clearfix">
<li>
<img src="picture/slogan01.jpg" alt="品牌优势">
<p class="explain">一站式玩拍体验p>
<p>拍婚照 · 度蜜月 · 游美景 · 享美食p>
li>
<li>
<img src="picture/slogan02.jpg" alt="品牌优势">
<p class="explain">没有隐形消费p>
<p>除套系价格,全程不再收取任何费用p>
li>
<li>
<img src="picture/slogan03.jpg" alt="品牌优势">
<p class="explain">坚持口碑营销p>
<p>更高品质的服务就是最有力度的营销p>
li>
<li>
<img src="picture/slogan04.jpg" alt="品牌优势">
<p class="explain">以客片说话p>
<p>总监团队,100%原创客片p>
li>
ul>
div>
<div class="bubble">
<div>
<img src="picture/bubble1.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble1.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble2.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble2.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble3.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble3.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble4.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble4.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble5.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble5.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble6.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble6.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble7.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble7.jpg" alt="图片" class="bubble2">i>
div>
<div>
<img src="picture/bubble1.png" alt="气泡" class="bubble1">
<i><img src="picture/bubble8.jpg" alt="图片" class="bubble2">i>
div>
div>
<div class="map">
<div class="cotactFont">
<a href="javascript:;">
<img src="picture/font01.png" alt="">
a>
<div>
<img src="picture/ctip.png" alt="" class="ctip">
div>
div>
<div class="addresBox">
<p class="addresCfont">中国 • 三亚市凤凰镇海虹路二月海酒店二号木屋p>
<p class="addresEfont">Phoeni townx, Sanya City, China, haihong road ,February Sea sea view Hotel, No.2
xyloid
cabinp>
div>
<div class="shareFile">
<a href="javascript:;" class="s1">a>
<a href="javascript:;" class="s2">a>
<a href="javascript:;" class="s3">a>
div>
div>
<div class="bottomMes">
<p class="friendLink">
友情链接:
<a href="javascript:;">全球旅拍a> |
<a href="javascript:;">邮轮旅拍a> |
<a href="javascript:;">艺术写真a> |
<a href="javascript:;">天猫商城a> |
<a href="javascript:;">加入我们a>
p>
div>
<div class="backTop">
<span>span>
div>
body>
html>
/*css 初始化 */
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {
margin: 0;
padding: 0;
}
fieldset, img, input, button {
border: none;
padding: 0;
margin: 0;
outline-style: none;
}
ul, ol {
list-style: none;
}
/*去掉原样式中的小黑点*/
input {
padding-top: 0;
padding-bottom: 0;
font-family: "SimSun", "宋体";
}
select, input {
vertical-align: middle;
}
/*输入字居中显示*/
select, input, textarea {
font-size: 12px;
margin: 0;
}
/**/
textarea {
resize: none;
}
/*防止拖动*/
img {
border: 0;
vertical-align: middle; /* 去掉图片底部默认的3像素空白缝隙*/
}
table {
border-collapse: collapse; /*合并外连线*/
}
body {
font: 12px/1.5 "微软雅黑", Arial, Verdana, "\5b8b\4f53"; /*unitedCode的写法,宋体的写法*/
color: #000;
background: #fff;
min-width: 1200px;
/*height: 3000px;*/
}
.clearfix:before, .clearfix:after {
/*清除浮动,最好最标准的写法*/
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
/*兼容IE6下的写法*/
}
a {
color: #666;
text-decoration: none;
}
a:hover {
/*color: #C81623;*/
font-weight: 800;
}
h1, h2, h3, h4, h5, h6 {
text-decoration: none;
font-weight: normal;
font-size: 100%;
}
s, i, em {
font-style: normal;
text-decoration: none;
}
.col-red {
color: #C81623 !important;
}
/*公共类*/
.w {
/*版心 提取 */
width: 1200px;
margin: 0 auto;
}
.fl {
float: left;
}
.fr {
float: right;
}
.al {
text-align: left;
}
.ac {
text-align: center;
}
.ar {
text-align: right;
}
.hide {
display: none;
}
/*css初始化完成*/
/*通用顶部 B*/
/*顶1 通栏*/
.shortcut {
height: 42px;
line-height: 42px;
background: #444;
}
.shortcut .ad {
font-size: 14px;
color: #fff;
}
.moreVer {
height: 42px;
margin-right: 20px;
}
.moreVer a {
display: inline-block;
height: 42px;
background-image: url(../image/top.png);
margin: 0 15px;
}
.ver-phone {
width: 76px;
background-position: 0 0;
}
.ver-phone:hover {
background-position: 0 -42px;
}
.ver-tmall {
width: 88px;
background-position: -122px 0;
}
.ver-tmall:hover {
background-position: -122px -42px;
}
.ver-weibo {
width: 72px;
background-position: -254px 0;
}
.ver-weibo:hover {
background-position: -254px -42px;
}
/*顶2 logo+tell*/
.logoBar .logo {
}
.logoBar .logo a {
display: block;
height: 110px;
width: 516px;
line-height: 110px;
background: url(../image/logo.png) no-repeat center;
text-indent: -9999px;
}
.logoBar .tell {
width: 480px;
height: 110px;
background: url(../image/tell.png) no-repeat center;
}
/*顶3 nav*/
.nav {
height: 48px;
position: relative;
z-index: 3;
background: #fff;
}
.nav .left-bg {
width: 7px;
height: 48px;
position: absolute;
left: -7px;
background: url(../image/nav-bg.png);
}
.nav li {
float: left;
position: relative;
width: 180px;
height: 36px;
padding: 6px 0 6px 20px;
background: url(../image/nav-bg.png) repeat-y right top;
}
.nav i {
display: block;
width: 52px;
height: 12px;
/*background: url(../image/bg01.png) no-repeat -1px -40px;*/
}
.nav li b {
display: block;
line-height: 24px;
font-size: 18px;
font-weight: bold;
}
color: #585858;
background-color: #dedede;
}
/*返回顶部*/
.backTop {
display: none;
width: 45px;
height: 74px;
position: fixed;
bottom: 40px;
right: 80px;
z-index: 999;
}
.backTop span{
cursor: pointer;
display: block;
width: 45px;
height: 74px;
background: url(../image/backup.png) no-repeat center;
}
一套合格的网页应该包含(具体可根据个人要求而定)
1.看到这里了就 【点赞收藏博文】
三连支持下吧,你的支持是我创作的动力, 【观注作者 |获取更多源码| 优质文章】
。
2.关注我带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.以上内容技术相关问题可以相互学习交流