>> English << | Português | По-русски | ZVON > Tutorials > CSS tutorial |
Intro / Search / ZVON |
>> Example 8 << | Prev | Next | Contents |
In the previous example each definition for the same element defined different property. If a property is defined several times, the last definition is used.
>> Case 1 <<HTML Source | CSS stylesheet |
---|---|
<h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <p>Text</p> | body {background-color: white; color: black}
h1, h2, h3, h4, h5{color: red} h1, h2, h3 {color: blue} h1 {color: green} |