Colors in CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colors in CSS</title>
<style>
#firstPara{
color: rgb(251, 255, 0);
}
#secondPara{
color: rgb(71, 13, 233);
}
#thirdPara{
color: #e7e7e7;
background-color: rgb(245, 96, 27);
}
</style>
</head>
<body>
<h2>This is my first box</h2>
<p id="firstPara">This is a paragraph from 1st box</p>
<h2>This is my second box</h2>
<p id="secondPara">This is a paragraph from 2nd box</p>
<h2>This is my third box</h2>
<p id="thirdPara">This is a paragraph from 3rd box</p>
</body>
</html>
Comments
Post a Comment