Lesson 1, Topic 1
In Progress

Using ColorsĀ 

You can style the color of borders, texts, and backgrounds in the following examples  


Border

To make a red border like this pic, Use the below code :

<h1 style=”border:2px solid Tomato;”>Hello World</h1>Ā 


Text

To make different colors of texts like this pic, Use the below code :

<h1 style=”color:Tomato;”>Hello World</h1>Ā 
<p style=”color:DodgerBlue;”>Lorem ipsum…</p>


Background

To make different colors of backgrounds like this pic, Use the below code :

<h1 style=”background-color:DodgerBlue;”>Hello World</h1>Ā 
<p style=”
background-color:Tomato;”>Lorem ipsum…</p>Ā 


Now you are ready to test yourself, letā€™s start this exerciseĀ