A CSS comprises of style rule that are interprented by the browser and then applied to the corresponding element in your document.
A style rule is made of three parts :
Syntax
Selector { property : value }
Here table is a selector and border is a property and given value 1px solid #C00 is the value of that property.
A style rule is made of three parts :
- Selector - A selector is an HTML tag at which a style will be applied. This cloud be any tag like <h1> or <table> etc.
- Property - A property is a type of attribute of HTML tag. Put simple, all HTML attributes are converted into CSS propeties. They cloud be color, border etc.
- Value - Values are assigned to propeties. For Example, color property can have value either red or #F1F1F1 etc.
Syntax
Selector { property : value }
Here table is a selector and border is a property and given value 1px solid #C00 is the value of that property.
Comments
Post a Comment