CSS - Selectors


  • Selector
    In the CSS We are using Selectors instead of the tags of HTML. I think now you are familiar with tags in HTML. Selectors are the names similar to HTML tags given to Internal and External Stylesheets. Selectors are defines with curly brackets. 

  • Properties
    Within the curly bracket of Selector specifying properties. Properties are like to be an HTML attributes such as color, backbround. Value of the property following a colon (in HTML value given after equal sign). Each of property value pairs ends with semi colon. But last value can be defined without a semi colon at the end of it.
    p{
       color : blue;
       font-size : 12;
       text-align :justify
    }
    These values apply to the font color, font size & align of the text to every Paragraphs in the HTML Document. 

No comments:

Post a Comment