Colours In CSS(tut18).html
<!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>Colours In CSS</title>
<style>
#firstPara{
color:red; /* color by name */
}
#secondPara{
/* color by rgb value */
color:rgb(214, 100, 48);
}
#thirdPara{
/* color by hex value */
color:#c52fc5;
background-color: #ff4532;
}
</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 first box</h2>
<p id="secondPara">This is a paragraph from second box</p>
<h2>This is my first box</h2>
<p id="thirdPara">This is a paragraph from Third box</p>
</body>
</html>
Comments
Post a Comment