Created
October 1, 2017 10:48
-
-
Save techxdeveloper/325800e88490ea10426b02880dd9fa0d to your computer and use it in GitHub Desktop.
CSS Psuedo Class Selector (:active, :hover, :link, :visited)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CSS Psuedo Class Selector (:active, :hover, :link, :visited)</title> | |
<style> | |
h1 { | |
color: #00bdc4; | |
border-bottom: 1px solid #bdbdbd; | |
padding-bottom: 20px; | |
} | |
a { | |
padding: 20px; | |
text-decoration: none; | |
border-radius: 2px; | |
color: #fafafa; | |
} | |
a:link { | |
background-color: #f44336; | |
} | |
a:visited { | |
background-color: #ffeb3b; | |
} | |
a:hover { | |
background-color: #4caf50; | |
} | |
a:active { | |
background-color: #9c27b0; | |
} | |
</style> | |
</head> | |
<body> | |
<div> | |
<h1>CSS Psuedo Class Selector (:active, :hover, :link, :visited)</h1> | |
<a href="http://techx.com.mm/programming" target="_blank">TechX Programming</a></li> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment