Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
div {
padding: 30px;
background-color: #8ebf42;
color:#eee;
}
div:active {
background-color: #666;
color: #fff;
}
</style>
</head>
<body>
<h2>Exemple du sélecteur :active</h2>
<div>
Lorem ipsum est simplement du faux texte...
</div>
</body>
</html>