Wednesday 24 April 2013

CSS Describe all parts - Rule Set vs Selector vs Declaration vs Property vs Value

Watch this example on YouTube:
    <style type="text/css">
        p
        {
            color: Red;
        }
        .LeftAligment
        {
            text-align: left;
        }
    </style>

______________________________________________________________________
Rule Set:
p
{
    color: Red;
}

______________________________________________________________________
Selector:
p
h1

______________________________________________________________________
Declaration:
color: Red;
______________________________________________________________________
Property
color:
______________________________________________________________________
Value:
Red;
______________________________________________________________________

No comments:

Post a Comment