>> English << | Português | По-русскиenternetusers > Tutorials > Surfing tutorial
>> Example 11 << | Prev | Next | Contents

Description


So far we have used names for defining colors. There are 16 colors defined in the standard: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow (for their display see named colors in Surfing 1 Reference). There are several other notation how to specify a color, see Surfing 1 Reference for more details. In our example aqua is defined using these notations.

>> Case 1 <<
HTML SourceSurfing 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 {color:aqua}
h2 {color:#00FFFF}
h3 {color:#0FF}
h4 {color:rgb(0,255,255)}
h5 {color:rgb(0%,100%,100%)}

Browser output