HTML Colors 📌


In this lecture, we are going to talk about HTML colors.


Maybe you have a question about why we need HTML Colors?

Frankly, This is not necessary, When you want to create an ugly website. BUT! when you are going to create a website for your client, definitely you need to create a good looking amazing website.

I think that's all that you need to know. Now we are going to describe more HTML colors.

red
black
brown
aqua
crimson
darkorange

This is how background color looks like this
Now the big question is how we implement this on your web page.

                
background-color: darkorange;
            

Okay, I think this is not enough to describe how we can write our CSS style.
First, we need a defined which HTML element we are going to style, For that we need to create some class & id (should not be repeated) even though we can style by selecting an HTML element.

Text Color :-

Hello World

Lorem ipsum...

Ut wisi enim...

Example

                
<p style="color:Tomato;">Hello World</p>
<p style="color:DodgerBlue;">Lorem ipsum...</p>
<p style="color:MediumSeaGreen;">Ut wisi enim...</p>
            

Border Color :-

Hello World

Hello World

Hello World

Example

                
<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>