Active pseudo css html web design

 

An element of the pseudo-class is used to define a particular element.
Styling an element when a user mouses over it or when it gets focus.

Example of this Code :

<!DOCTYPE html>
<html>
<head>
<title> </title>
<style>
html:active
{
background: red;
}
</style>
</head>
<body>
Click anywhere in the screen
</body>
</html>


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.