<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Webpage with Scrolling Images</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f8ff;
text-align: center;
padding: 30px;
}
h1 {
color: #2e8b57;
}
p {
font-size: 18px;
color: #333;
}
.marquee-images img {
width: 200px;
height: auto;
margin: 0 15px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
button {
padding: 10px 20px;
font-size: 16px;
margin-top: 30px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>Check out these cool scrolling images below!</p>
<marquee class="marquee-images" behavior="scroll" direction="left"
scrollamount="5">
<img src="https://via.placeholder.com/200x150?text=Image+1" alt="Image 1">
<img src="https://via.placeholder.com/200x150?text=Image+2" alt="Image 2">
<img src="https://via.placeholder.com/200x150?text=Image+3" alt="Image 3">
<img src="https://via.placeholder.com/200x150?text=Image+4" alt="Image 4">
</marquee>
<button onclick="sayHello()">Click Me</button>
<script>
function sayHello() {
alert("Hello! Thanks for clicking the button.");
}
</script>
</body>
</html>