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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay