In an earlier post I told you in CSS Basics about Topology of CSS Rules. A web document written in a markup language can use Cascading Style Sheets (CSS) as a style sheet language in order to describe its look and formatting.
The basic elements in the definition of CSS stylesheets are the CSS rules. The structure of a stylesheet is a disordered enumeration of rules definitions mixed with comments. A rule definition is composed of two distinct parts:
- Selector. This is the first part of a CSS rule and lets specify which elements of the related HTML page this rule applies.
- Declaration block. This is the second part of a CSS rule and is a set of none, one or more declarations enclosed in curly braces.
A declaration is the pair formed by a CSS property name and its value. It always
Ver la entrada original 1.497 palabras más