CSS 2 Example 6

>> English << | česky | Português ZVON > Tutorials > CSS2 tutorial
Intro / Search / ZVON
>> Example 6 << | Prev | Next | Index | Contents

The behaviour of some elements can be tailored with pseudo-classes hover, active and focus

XML SourceCSS stylesheetExample link
(1)
<AAA>
<html:p>
<html:input type = "button" value = "BUTTON"></html:input>
<html:input type = "text" value = "T E X T"></html:input>
</html:p>
</AAA>

input:hover {color:fuchsia}
input:active {color:red}
input:focus {color:aqua}
View output

AltStyle によって変換されたページ (->オリジナル) /