Add attractive colors on your web pages
{color : red;}
property value
<!DOCTYPE html>
<html>
<head>
<title>Button</title>
</head>
<body>
<p type="submit" style="color:red;">
TDB Tutorials
</p>
</body>
</html>
We use different color codes on our web page
{color : rgb(0,0,0)}
property value
rgb(0,0,0) produces Black Color
{color : rgb(0,0,0,0.1)}
property value
Range of Alpha
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{color:rgb(255,255,255);
background-color:rgb(0,0,0);
padding:10px 35px;
border:none;
border-radius:5px}
h2{color:rgb(0,0,0,.5);}
</style>
</head>
<!--Body-->
<body>
<h2>This is a button<h2>
<button type="submit" class="tdb-school">
Press
</button>
</body>
</html>
{color : #000000}
property value
#000000 produces Black Color
<head>
<style>
.tdb-school{color:#ffffff;background-color:#000000;padding:10px 35px;border:none;border-radius:5px}
</style>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">
Press
</button>
</body>
{color : hsl(0,0%,0%)}
property value
hsl(0,0%,0%) produces Black Color
<head>
<style>
.tdb-school{color:hsl(0,0%,100%);background-color:hsl(0,0%,0%);padding:10px 35px;border:none;border-radius:5px}
</style>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">
Press
</button>
</body>
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers