Press "Enter" to skip to content

Pseudo Classes Examples in CSS

Last updated on October 5, 2019

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>

Be First to Comment

    Leave a Reply

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