DEV Community

Cover image for Change the Background Color using JavaScript / HTML & CSS
Aakash A
Aakash A

Posted on • Edited on

3

Change the Background Color using JavaScript / HTML & CSS

Hey Devs !! Welcome.In this new Post
you'll see a beginner friendly project on javascript,
to change the background color on click , Blog
Here I'll add my Code Snippets below ! 😍

HTML Snippets

Then we import our Fav google Fonts
Google Font

Here's Our Styling, Basic Styles
CSS Snippets

Now Style Our Logo Class,Nav & Container
CSS Snippets

& styling our button with little hover effects
CSS Snippets

Here's Our Fun Part [ JS ]

JS

Here's the another method

JS

Here I'll add my youtube Video Down here,Kindly Check it

° Playground link -1 : CodePen
° Playground link -2 : CodePen

💜 Thank You for Reading 🙌
Be Happy 😊 & Always Smile 😇

Add ME on Instagram | Facebook |Twitter | Youtube

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay