Hello Guys ✌️✌️✌️
Back after long time with another post.
Ever felt how cool it would be if random background colors would be applied to your page on just one click of button .
Lets start 👍👍
Step -1 : HTML
There's not much to write in HTML . You Just need to Create a an heading tag with an id . In this heading tag we will be printing the rbg value of the generated color. Second You need to create a button with an id . Also create a js file and link it in your html. That's It with our HTML. The HTML code is below :
Step -2 : CSS
Here I've applied some styling to the button created so that it looks good. You can add your own styling also. The CSS is below :
You can see the Output Below How it generates random colors onclick of the button .
So that's it for today .
meet You in next Post
Till then Happy Coding 👩💻👩💻👩💻