Lesson 11
Lesson 11
Colors
By
Sir G
Santoyo
S.Y. 2023 - 2024
Table of Content
• Objectives
• The Psychology and Perception
of Colors
• HTML Colors
Psychology of Colors Perception of Color Red
1. Colors can influence human
behavior.
2. Colors can influence human
perceptions.
3. Colors can influence the taste
of food.
4. Colors can influence
attractiveness
Perception of Color Perception of Color Blue
Green
Perception of Color Perception of Color Gray
Yellow
Perception of Color Perception of Color
White Black
HTML Colors 4 ways to specify
HTML color can be used by thru the HTML color
use of Color and Background-color
properties of Style element or Style 1. There a total of 140 Color
properties. Names
Examples: 2. Hexadecimal
3. RGB Color
<p style=“color:red”> </p> 4. HSL Color
<body style=“background-
color:red:>
</body>
RGB Colors Example of RGB color
An RGB color value represents
<p style=“color:rgb(0, 0, 255)”>This
RED, GREEN, and BLUE light
is Blue </p>
sources.
<body style=“background-
An RGBA color value is an
color:rgb(255,0,0)”>
extension of RGB with an Alpha
</body>
channel (opacity).
<p style=“color:#00ff00“>hello
world</p>
2. Set the background color of the web
page document to yellow.
<body style=“background-color:yellow”>
<body style=“color:red”>