O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.1 CSS DECLARATIONS

The hierarchy of applying CSS styles work on an HTML page. An HTML page can have multiple styles. A style sheet document in turn can apply to multiple HTML pages as well. That is the advantage—styles can be uniformly applied as well as specifically controlled—a unique combination of centralized as well as a de-centralized approach to applying styles to documents.

Returning to the hierarchy of styles, an HTML document can have multiple styles or CSS documents, associated; each CSS document can have multiple style declarations; each declaration consists of a Rule. A Rule consists of a Selector and a set of name-value pairs.

Figure 3.1 shows how CSS Declarations are applied as styles to HTML. Each CSS Declaration takes the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required