blob: a9a000a2a7770a3cad76171f60aec86cf85fb700 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>:checked pseudo-class</title>
<style type="text/css">input, span { background-color : red }
input:checked, input:checked + span { background-color : lime}
</style>
<link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
<link rel="prev" href="css3-modsel-24.html" title=":disabled pseudo-class">
<link rel="next" href="css3-modsel-27.html" title=":root pseudo-class">
<link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child">
<link rel="up" href="./index.html">
<link rel="top" href="../../index.html">
</head>
<body>
<p>
<input type="checkbox" checked="checked"> <span>Everything in this paragraph should have a green background</span></p>
</body>
</html>