2015-05-03 86 views
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">&copy; Islington College</a></li> 
     </ul>  
    </footer> 

</body> 
</html> 

回答

0

我想div標籤應該是最好的選擇後跟部分的標籤,但它實際上取決於使用情況。對於圖像滑塊,我想部分標籤應該是最好的。如果您對HTML5編碼有任何疑問,我認爲(http://w3schools.com)是您需要訪問的地方。