Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
/* State-based pseudo-classes */ a:hover { color: #007bff; } input:focus { border-color: #007bff; } button:active { transform: scale(0.97); } /* Structural pseudo-classes */ li:first-child { font-weight: bold; } tr:nth-child(even) { background: #f8f9fa; }
Result
Open