text color in css
The color property is used to set the color of the text. With CSS, a color is most often specified by – as same as what we see in the previous section Background color:
♦ Color name - like "red"
♦ RGB value - like "rgb(255,0,0)"
♦ HEX value - like "#ff0000"
Example :
<HTML>
<HEAD>
<STYLE>
BODY {BACKGROUND-COLOR: MAROON ;}
p.para1{COLOR: green ;}
p.para2{COLOR: rgb(0,255,220) ;}
</STYLE>
<TITLE> CSS EXAMPLE-TEXT </TITLE>
</HEAD>
<BODY>
WELCOME TO MY FIRST WEB PAGE <BR><BR>
<p class= para1 >WE ARE THE STUDENT OF DCSA
PROGRAM<p><br>
<p class= para2 >WE LOVE OUR COUNTRY<p>
</BODY>
</HTML>
0 মন্তব্য(গুলি):
একটি মন্তব্য পোস্ট করুন
Comment below if you have any questions