
222 • XML & Related Technologies
The resulting page is shown in Figure 5.32.
Figure 5.32 Output of using list-related styles
5.5 STYLESHEET EXAMPLES
Let us conclude the chapter with miscellaneous style examples. We strongly recommend that the reader tries
all of them.
Exercise 1
Show a CSS to display the rst two headings and a paragraph
in an HTML document in different colours.
Solution 1
<html>
<head>
<style type=”text/css”>
h1 {colour: #00FFFF}
h2 {colour: #CCa0DD}
p {colour: rgb(0,1,255)}
</style>
</head>