CSS Hover Effect #Part 9

 CSS Hover Effect #Part 9



The :hover selector is used to select elements when you mouse over them.

Syntax

tag: hover

{

//CSS Code

}

Example

Hover Effect in button Tag.

HTML Code

<button>click me</button>

CSS Code

<style>

button:hover

{

background-color: green;

}

</style>



Try it Yourself...

what you think about this article ??

Post a Comment

Previous Post Next Post