A simple web application that generates a random color each time a button is clicked. This project demonstrates basic JavaScript functionality and dynamic styling of HTML elements.
- Random Color Generation: Generates a new random RGB color when the button is clicked.
- Dynamic Background Update: Updates the background color of a div with the generated color.
- User Interface: A minimalistic design with a button to trigger the color change and a div to display the color.
- HTML: For structuring the web page.
- CSS: For styling the page and its elements (referenced as
style.css
). - JavaScript: For handling the color generation and dynamic updates (referenced as
app.js
).
To use this project locally, follow these steps:
-
Clone the Repository
git clone https://github.com/yourusername/random-color-generator.git
-
Navigate to the Project Directory cd random-color-generator
-
Open the HTML File open index.html
Here’s how to use the Random Color Generator:
- Click the Generate button to generate a new random RGB color.
- The background color of the div below the button will change to the newly generated color.
- View the Color
Shobhit Singh