Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
🎨 Change Color Project – change-color.html This small project allows users to change the background color of a webpage using JavaScript. It’s a great beginner-level example of how to manipulate the DOM and use event listeners. ==================== 📁 File Structure ==================== change-color.html ← Main file containing HTML change-color.js ← Main file containing JS change-color.css ← Main file containing CSS README.txt ← This file ==================== 🚀 How It Works ==================== - A button is displayed on the screen. - When the user clicks the button: - JavaScript generates a random color (hex or RGB). - The background color of the page (or target element) is updated with the new color. - Optionally, the color value is shown on the screen. ==================== 🔧 Technologies Used ==================== - HTML5 - CSS3 - JavaScript ==================== 📦 How to Use ==================== 1. Open the file `change-color.html` in your browser. 2. Click the "Change Color" button. 3. Enjoy watching the background change colors dynamically. ==================== 📌 Notes ==================== - You can customize the color generation logic (e.g., fixed palette, gradients). - A useful UI feature is to show the hex or RGB color value after each change. ==================== 💡 Author ==================== Abderrahim Khali Ali