0
使用HTML5標準編寫我的網站時,遇到圖像滑塊,但找不到相關標籤。我做了研究,發現div =「滑塊」主要用於滑塊。而且,HTML5將徹底消除特定標籤的div和span標籤。爲此,我正在使用節標記。哪一個是最佳做法?圖像滑塊的標準HTML佈局
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<body class="body">
<header class="mainHeader">
<figure id="logo">
<img src="images/logo.png" alt="logo">
</figure>
<nav>
<ul>
<li><a href="index.html" style="color: #EE2B32;">Home</a> </li>
<li><a href="courses.html">Courses</a></li>
<li><a href="lectures.html">Lectures</a></li>
<li><a href="admission.html">Admission</a></li>
<li><a href="facilities.html">Facilities</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main class="home">
<section class="slider">
<ul>
<li> <img src="images/slider/1.jpg" alt="Graduation Day"> </li>
</ul>
</section>
<section class="mainContent">
<h3>Introduction</h3>
<p class="para">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, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. </p>
</section>
</main>
<footer class="mainFooter">
<ul>
<li><a href="index.html">Home |</a></li>
<li><a href="courses.html">Courses |</a></li>
<li><a href="lectures.html">Lectures |</a></li>
<li><a href="admission.html">Admission |</a></li>
<li><a href="facilities.html">Facilities |</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="http://islingtoncollege.edu.np">© Islington College</a></li>
</ul>
</footer>
</body>
</html>