how to display images kept in a folder one by one using index.html

  Kiến thức lập trình

html file like this:

<html>
<head>
<meta name="description" content="Department Events">
</head>
<title> Recent and Ongoing Events in the Department of Physics </title>
<body style="background-color:powderblue;">
<center>
<img style="width: 985px; height: 408px;" src="physics-1.jpg">
<h1 style="color:blue;">Department of Physics - Events and Activities</h1>
<hr>
</body>
</html>

Here I display image physics-1.jpg. But I want to display all images one by one from a folder photo so that each image is shown for 10 seconds and then changes to next images and ultimately back to first image and so on…

Could you please guide me what changes are needed in index.html page?

Thanks

a simple working example html code would be very helpful.

New contributor

Sushil Chauhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT