2.HTML Colors

HTML Tutorial



In HTML, a color can be specified by using a color name:

 Img Src : https://www.w3schools.com/html/html_colors.asp

Lets set Background Color

E.G :

<h1 style=”background-color:DodgerBlue;”>Welcome Color</h1>
<p style=”background-color:Tomato;”>Write Something here…</p>



Lets set Text Color

E.G : 

<h1 style=”color:Tomato;”>Color Example Text</h1>
<p style=”color:DodgerBlue;”>Ok, lets carry on example…</p>
<p style=”color:MediumSeaGreen;”>Final paragraph is here for text color….</p>



Leave a Reply

Your email address will not be published.