HTM37


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

      When a Web page requests a color that is not available in a browser�s lookup table, the browser interpolates (dithers) its own colors to come up with the closest color to render the page. Dithering color is not a good practice, as the look of Web pages becomes unpredictable. Web authors should try to limit their colors to those of the browser-Web authors to define and control image color palettes.


..Back to the top..



OUTPUT:


HTM37. Different colors
Display of different colors

This is color 1

This is color 2

This is color 3

This is color 4

This is color 5

This is color 6

This is color 7

This is color 8

This is color 9



..Back to the top..



SOURCE CODE:



<HTML>
<HEAD><TITLE>HTM37. Different colors</TITLE></HEAD>
<BODY>
<FONT SIZE = 6 COLOR = red><CENTER>
Display of different colors
</CENTER></FONT>
<H2><FONT COLOR = #00FFFF>This is color 1</FONT></H2>
<H2><FONT COLOR = #000000>This is color 2</FONT></H2>
<H2><FONT COLOR = #0000FF>This is color 3</FONT></H2>
<H2><FONT COLOR = #9F5F9F>This is color 4</FONT></H2>
<H2><FONT COLOR = #4566C9>This is color 5</FONT></H2>
<H2><FONT COLOR = #B5A642>This is color 6</FONT></H2>
<H2><FONT COLOR = #A62A2A>This is color 7</FONT></H2>
<H2><FONT COLOR = #B87333>This is color 8</FONT></H2>
<H2><FONT COLOR = #FF7F00>This is color 9</FONT></H2>
</BODY>
</HTML>


..Back to the top..