CSS colors
CSS colors
CSS colors:
There are three types of color implement method in CSS. first of all Direct Color then rgb color implement and at last hex color implement.
The source code of the video is given bellow
HTML code (tutorial_3.html):
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Coding Discussion</h1>
<!-- direct colour -->
<p class="para">This is a tutorial on css colours</p>
<!-- rgb colour -->
<p class="para2">This is a tutorial on css colours</p>
<!-- hexa colour -->
<p class="para3">This is a tutorial on css colours</p>
</body>
</html>
CSS code (style.css):
h1{
color: slateblue;
background-color: springgreen;
padding: 23px;
}
.para{
color: red;
background-color: rgb(7, 250, 88);
}
.para2{
color: rgb(14, 227, 235);
}
.para3{
color: #0052cc;
}
HTML color Picker W3schools page link given bellow
keep supporting us
0 Comments
If you have any question , then please ask me