Home
CSS
CSS Pseudo-class
Tryit: Using pseudo-class and HTML class
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> a.highlight:hover { color: #ff0000; font-size: 22px; } </style> </head> <body> <h2>Pseudo-classes and HTML Classes</h2> <p>When you hover over the first link below, it will change color and font size:</p> <p><a class="highlight" href="css_syntax.asp">CSS Syntax</a></p> <p><a href="default.asp">CSS Tutorial</a></p> </body> </html>