<!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: red; /*Color by name*/
}
#SecondPara{
color: rgb(51, 187, 221); /*Color by rgb value*/
}
#thirdPara {
color: #bb6d6d;
background-color: #c4db5a; /*Color by hex value*/
}
</style>
</head>
<body>
<H2>This is my first box</H2>
<p id="firstPara">This is a paragraph from first box</p>
<h2>This is my Second box</h2>
<p id="SecondPara">This is a paragraph from Second box</p>
<h2>This is my third box</h2>
<p id="thirdPara">This is a paragraph from first box</p>
</body>
</html>
No comments:
Post a Comment