HTML-Booklet Today

Colors are imperative to give a decent look and feel to your site. You can determine hues on page level utilizing <body> tag or you can set hues for singular labels utilizing bgcolor characteristic. 

The <body> tag has following characteristics which can be utilized to set various hues. 

bgcolor − sets a shading for the foundation of the page. 

content − sets a shading for the body content. 

alink − sets a shading for dynamic connections or chose joins. 

interface − sets a shading for connected content. 

vlink − sets a shading for visited joins − that is, for connected content that you have just tapped on. 

HTML Color Coding Methods 

There are following three distinct techniques to set hues in your site page.

Shading names − You can indicate shading names legitimately like green, blue or red. 

Hex codes − A six-digit code speaking to the measure of red, green, and blue that makes up the shading. 

Shading decimal or rate esteems − This worth is determined utilizing the rgb( ) property. 

Presently we will see these shading plans individually. 

HTML Colors – Color Names 

You can indicate a shading name to set content or foundation shading. 

Note : Check a total rundown of HTML Color Name. 

Model 

<!DOCTYPE html>
<html>
<head>
<title>HTML Colors by Name</title>
</head>
<body text=”blue” bgcolor=”white”>
<p>color names for body and table.</p>
<table bgcolor=”black”> 
<tr>   
<td>
<font color=”white”>This text white background.</font> 
</td>
</tr>
</table>   
</body>
</html>

Here are the guides to set the foundation of a HTML tag by shading name. 

HTML Colors – Hex Codes 

A hexadecimal is a 6 digit portrayal of a shading. The initial two digits(RR) speak to a red value, the following two are a green value(GG), and the last are the blue values(BB). 

A hexadecimal worth can be taken from any illustrations programming like Adobe Photoshop, Paint shop Pro or MS Paint. 

Each hexadecimal code will be gone before by a pound or hash sign #. Following is a rundown of a couple of hues utilizing hexadecimal documentation. 

Model 

<!DOCTYPE html>
<html>
<head>
<title>HTML Colors Hex</title>
</head>
<body text=”#0000FF” bgcolor=”#00FF00″>
<p>color hex for the body and table</p>
<table bgcolor=”#000000″> 
<tr>   
<td>
<font color=”#FFFFFF”>This text white on black background.</font> 
</td>
</tr>
</table>   
</body>
</html>

Here are the guides to set the foundation of a HTML tag by shading code in hexadecimal. 

HTML Colors – RGB Values 

This shading esteem is determined utilizing the rgb( ) property. This property takes three qualities, one each for red, green, and blue. The worth can be a whole number somewhere in the range of 0 and 255 or a rate. 

Note:All the programs don’t bolster the rgb() property of shading so it is prescribed not to utilize it. 

Following is a rundown to show a couple of hues utilizing RGB values. 

Model 

<!DOCTYPE html>
<html>
<head>
<title>HTML Colors by RGB code</title>
</head>
<body text=”rgb(0,0,255)” bgcolor=”rgb(0,255,0)”>
<p>color code for the body and table.</p>
<table bgcolor=”rgb(0,0,0)”> 
<tr>   
<td>
<font color=”rgb(255,255,255)”>This text white on black background.</font> 
</td>
</tr>
</table>   
</body>
</html>

Here are the guides to set foundation of a HTML tag by shading code utilizing rgb() values

 

 

 

Share