Type Selector in CSS

     

  • User can use other than HTML Tags for this Selector
  • Define the required styles under the Head tag
  •  

    Code:

    <html>
    <head>
    <title>CSS Type Selector</title>
    <style type="text/css">
    abc {
    color: red;
    font-size: 150%;
    font-family: book antiqua;
    Text-decoration: underline;
    }
    </style>
    </head>
    <body>
    <abc>This is about type selector</abc>
    </body>
    </html>

    Output:

    Download The Coding Along With Web Page