Press "Enter" to skip to content

Tag Based CSS Examples in CSS

Last updated on October 5, 2019

Definition :

  • It is a process of applying css based on the tags associated or created 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 *