>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> 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