Professional Documents
Culture Documents
TODAY’S OBJECTIVES
1. distinguish the different HTML colors
specified using predefined color
names;
2. discuss the significance of adding
background color on the webpage;
and
3. design your own webpage.
Changing the Background
Color of a Page
WHY IS IT IMPORTANT TO ADD
COLOR ON OUR WEBPAGE?
Color
Color codes are ways of representing the colors
we see everyday in a format that a computer can
interpret and display.
#rrggbb
HEX COLOR CODES
Example:
#00ff00
Color:
GREEN
HTML COLOR NAMES
HTML COLOR NAMES
HTML COLOR NAMES
HTML COLOR NAMES
HTML COLOR NAMES
RGB
In HTML, a color can be specified as an RGB
values, using this formula:
0 and 255.
RGB
Example:
rgb (255, 0, 0)
Color:
RED
RGB
Example:
Color:
GREEN
HSL
In HTML, a color can be specified using hue,
saturation, and lightness (HSL) in the form:
Color:
HSL
Example:
Color:
HSL
Example:
Color:
ADDING FONT COLOR
<p style="background-
color:blue;">BUGHAW</p>
<p style="background-color:rgb(0, 0,
255);”>BUGHAW</p>
<p style="background-color:hsl(240,
100%, 50%);”>BUGHAW</p>
<p style="background-
color:#0000ff;">BUGHAW</p>
ADDING BORDER COLOR