Colors in CSS
- As the name defines colors are used to set the colors on the text.
- In CSS basically, we can set colors in three types of value: color by name, color by RGB value, and color by HEX value.
- In today's tutorial, we will see how we can use these color values.
Basic code for Colors Properties
<!DOCTYPE html>
<html>
<head>
<title>Colors </title>
<link rel=" shortcut icon" href=" favicon.png" >
<link rel=" stylesheet" href=" style.css" >
</head>
<body>
<p class="para"> Mallu Coder Sugu</p>
</body>
</html>
Color Properties and source code :
Property | Code |
Color by name
|
.para { color:red; } |
Color by RGB:
|
.para { color: rgb(196, 16, 166, 0.5); } |
Color by HEX:
|
.para { color: #201219; } |
Introduction to CSS Part-2 PDF Click here to download
Easy Pickup
- 1. CSS More Samples
- 2. CSS Malayalam Classes
- 3. CSS Malayalam Notes