多媒体与语义化标签自由编程
来源:3-8 自由编程
BortalaMu
2021-08-01 10:13:01
代码整体有无问题?section标签用的有无问题?代码有没有可删减的部分。
<head>
<meta charset="utf-8" />
<title>多媒体与标签语义化</title>
</head>
<body>
<!-- 页面头部 -->
<header>
<!-- LOGO -->
<div class="logo">
<img src="img/logo.png">
</div>
<!-- 导航 -->
<nav>
<ul>
<li>HOME</li>
<li>ABOUT</li>
<li>GALLERY</li>
<li>FACULTY</li>
<li>EVENTS</li>
<li>CONTACT</li>
</ul>
</nav>
</header>
<!-- 页面banner -->
<section class="banner">
<!-- banner图片 -->
<div class="banner-images">
<img src="img/banner3.jpg" >
</div>
<!-- banner遮罩层 -->
<div class="banner-cover">
</div>
<!-- banner表单 -->
<div class="banner-datalist">
</div>
</section>
<!-- 页面内容 -->
<main class="content">
<!-- About -->
<section class="about">
<!-- About上半 -->
<div class="about-top">
<h2>ABOUT</h2>
<div class="slice-line">分割线</div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p>
</div>
<!-- About下半 -->
<div class="about-bot">
<div class="about-bot-left">
<h3>A WORD <br/>ABOUT US</h3>
<div class="about-explore">
<p>Praesent dignissim viverra est, sed bibendum ligula congue non. Sed ac nisl et felis gravida commodo? Suspendisse eget ullamcorper ipsum. Suspendisse diam amet.</p>
<div class="btn-explore">EXPLORE</div>
</div>
</div>
<img src="img/bb3.jpg">
<div class="about-bot-right">
<div class="about-data">
<p>70000</p>
<div class="slice-line">分割线</div>
<p>Students</p>
</div>
<div class="about-data">
<p>600</p>
<div class="slice-line">分割线<div>
<p>Faculty</p>
</div>
</div>
</div>
</section>
<!-- 图文混排区 -->
<section class="images-and-texts">
<div class="image1">
<img src="img/b1.jpg">
</div>
<div class="text2">
<h3>Library</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<div class="btn-explore">
EXPLORE
</div>
</div>
<div class="image3">
<img src="img/b2.jpg">
</div>
<div class="text4">
<h3>Library</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<div class="btn-explore">
EXPLORE
</div>
</div><div class="image5">
<img src="img/b3.jpg">
</div>
<div class="text6">
<h3>Library</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<div class="btn-explore">
EXPLORE
</div>
</div>
<div class="image7">
<img src="img/b4.jpg">
</div>
<div class="text8">
<h3>Library</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<div class="btn-explore">
EXPLORE
</div>
</div>
</section>
<!-- gallery -->
<section class="gallery">
<!-- gallery上半 -->
<div class="gallery-top">
<h2>GALLERY</h2>
<div class="slice-line">
分割线
</div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p>
</div>
<!-- gallery下半 -->
<div class="gallery-bot">
<dl>
<dt><img src="img/03-01.jpg" ></dt>
<dd>Scinence Lab</dd>
</dl>
<dl>
<dt><img src="img/03-02.jpg"></dt>
<dd>Indoor Stadium</dd>
</dl>
<dl>
<dt><img src="img/03-03.jpg"></dt>
<dd>Transportation</dd>
</dl>
<dl>
<dt><img src="img/03-04.jpg"></dt>
<dd>Kids Room</dd>
</dl>
<dl>
<dt><img src="img/03-05.jpg"></dt>
<dd>Meditation Classes</dd>
</dl>
<dl>
<dt><img src="img/03-06.jpg"></dt>
<dd>Kids Play Ground</dd>
</dl>
</div>
</section>
</main>
<!-- 页脚 -->
<footer>
<p>©2016 imooc.com 京ICP备13046642号</p>
</footer>
</body>
1回答
同学你好,代码实现没有问题,section标签使用也没有问题,代码整体已经很简洁了,不用再修改了,祝学习愉快~
相似问题