<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Interactive Image with CSS</title> <style> .interactive-image { position: relative; display: inline-block; } .interactive-image img { display: block; } .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); color: white; opacity: 0; transition: opacity 0.3s ease; display: flex; justify-content: center; align-items: center; font-size: 24px; text-align: center; } .interactive-image:hover .overlay { opacity: 1; } </style> </head> <body> <div class="interactive-image"> <img src="your-image.jpg" alt="Interactive Image" width="600"> <div class="overlay">Hover Text or Link</div> </div> </body> </html>