>> English << | Português | По-русски | ZVON > Tutorials > CSS tutorial |
Intro / Search / ZVON |
>> Example 2 << | Prev | Next | Contents |
In this example the same stylesheet is used to format different HTML sources.
>> Case 1 << | Case 2HTML Source | CSS stylesheet |
---|---|
<html> <head> <link rel='stylesheet' type='text/css' href='css1.css'> <title>A CSS example</title> </head> <body> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <p>Text</p> </body> </html> | h1 {color:blue}
h2 {color:navy} h3 {color:olive} h4 {color:purple} h5 {color:maroon} p {font-weight:bold; color:red;} |