In the past year, We were using Javascript and jQuery for image slideshow(image Slider), But nowadays we can make slideshow easily with the help of HTML5. In this blog I am going to discuss about how to make slideshow in HTML5 with complete explanation and codes . You can easily generate professional and attractive slideshow in HTML5.
Below is following Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Display Slide Show</title>
<style> #slideShowImages { border: 1px gray solid; background-color: lightgray; } #slideShowImages img { border: 0.8em black solid; padding: 3px; } </style>
</head>
<body>
<div id="slideShowImages"> <img class='imagem_artigo' src="img/photos/1.png" alt="Slide 1" />
<img class='imagem_artigo' src="img/photos/2.png" alt="Slide 2" />
<img class='imagem_artigo' src="img/photos/3.png" alt="Slide 3" />
<img class='imagem_artigo' src="img/photos/4.png" alt="Slide 4" /> </div>
<button id="slideShowButton"></button>
<script src="slideShow.js">
</script>
</body>
</html>
To run this code , You need save this code in file with extension.html . Also note that image should located in same folder as your .html file. Make sure you include slideShow.js file at your server.
Hope you enjoy this blog. If you have an query regarding Html, feel free to post at FindNerds Html help Forum .
0 Comment(s)