A style sheet contains several rules (CSS rules). A CSS rule is made of two elements: a selector and one or more declarations enclosed in braces ({}). The syntax for a CSS rule is shown below: 1 2 3 4 5 6 selector { declaration1; declaration2; … } Syntax of a CSS style rule can be understood clearly by looking at the figure below: The selector specifies the HTML element to which the presentation effects should be applied and the declaration contains two parts: property-name and property-value. A HTML element can have several presentational properties and corresponding property values. An
The post What is the composition of Style rule in CSS appeared first on Coding Security.
What is the composition of Style rule in CSS
read more
Tidak ada komentar:
Posting Komentar