The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Easy website template sample for...
By Guest on 16th December 2022 11:25:33 AM | Syntax: HTML5 | Views: 1



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. <!DOCTYPE html>
  2. <meta charset="UTF-8">
  3. <meta name="viewport" content="width=device-width, initial-scale=1">
  4. <link rel="stylesheet" href="/w3css/3/w3.css">
  5. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
  6.  
  7. <!-- Navigation -->
  8. <nav class="w3-bar w3-black">
  9.   <a href="#home" class="w3-button w3-bar-item">Home</a>
  10.   <a href="#band" class="w3-button w3-bar-item">Band</a>
  11.   <a href="#tour" class="w3-button w3-bar-item">Tour</a>
  12.   <a href="#contact" class="w3-button w3-bar-item">Contact</a>
  13. </nav>
  14.  
  15. <!-- Slide Show -->
  16.   <img class="mySlides" src="img_band_la.jpg"
  17.  style="width:100%">
  18.   <img class="mySlides" src="img_band_ny.jpg"
  19.  style="width:100%">
  20.   <img class="mySlides" src="img_band_chicago.jpg"
  21.  style="width:100%">
  22.  
  23. <!-- Band Description -->
  24. <section class="w3-container w3-center w3-content" style="max-width:600px">
  25.   <h2 class="w3-wide">THE BAND</h2>
  26.   <p class="w3-opacity"><i>We love music</i></p>
  27.   <p class="w3-justify">We have created a fictional band website. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
  28.  
  29. <!-- Band Members -->
  30. <section class="w3-row-padding w3-center w3-light-grey">
  31.   <article class="w3-third">
  32.     <p>John</p>
  33.     <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  34.     <p>John is the smartest.</p>
  35.   </article>
  36.   <article class="w3-third">
  37.     <p>Paul</p>
  38.     <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  39.     <p>Paul is the prettiest.</p>
  40.   </article>
  41.   <article class="w3-third">
  42.     <p>Ringo</p>
  43.     <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  44.     <p>Ringo is the funniest.</p>
  45.   </article>
  46.  
  47. <!-- Footer -->
  48. <footer class="w3-container w3-padding-64 w3-center w3-black w3-xlarge">
  49.   <a href="#"><i class="fa fa-facebook-official"></i></a>
  50.   <a href="#"><i class="fa fa-pinterest-p"></i></a>
  51.   <a href="#"><i class="fa fa-twitter"></i></a>
  52.   <a href="#"><i class="fa fa-flickr"></i></a>
  53.   <a href="#"><i class="fa fa-linkedin"></i></a>
  54.   <p class="w3-medium">
  55.   Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a>
  56.   </p>
  57.  
  58. // Automatic Slideshow - change image every 3 seconds
  59. var myIndex = 0;
  60. carousel();
  61.  
  62. function carousel() {
  63.   var i;
  64.   var x = document.getElementsByClassName("mySlides");
  65.   for (i = 0; i < x.length; i++) {
  66.    x[i].style.display = "none";
  67.  }
  68.  myIndex++;
  69.  if (myIndex > x.length) {myIndex = 1}
  70.   x[myIndex-1].style.display = "block";
  71.   setTimeout(carousel, 3000);
  72. }
  73.  
  74. </body>
  75. </html>



  • Recent Pastes