Pseudo Classes Examples in CSS

Definition :

  • It is a process of applying the css based on the events or temporary actions applied on the webpage.

Program :

<html>

     <style type=”text/css”>

                     p

                                 {

                                 color:red;

                                 }

                 </style>

                 <body>

                     <p> Hello </p>

                                 <p> Hi </p>

                                 <p> A </p>

                                 <p> B </p>

                                 <p> C </p>

                                 <div> Hi </div>

                 </body>

</html>

Leave a Reply

Your email address will not be published. Required fields are marked *