Colors in HTML Assignment Help
To design a website in a attractive manner, colors play a major role. To specify color to a page, employ bgcolor attribute in <body> tag and it can be specified for all the tags using the attribute bgcolor
The <body> tag various attributes to define colors are specified below
bgcolor- page background color
text- body content text color
alink- active link color
link – linked text color
vlink – visited links color.
Color Coding Methods in HTML
Colors in HTML Assignment Help Through Online Tutoring and Guided Sessions at MyAssignmentHelp
Three methods can be employed to give colors to a web page
Color Names
Hexadecimal Codes
Color Percentage Values or Decimal Values
Color Names in HTML Colors
In this method, color names are specified directly to the text or background
The W3C Standard has Specified 16 Colors .The list is underlying
![Colors In HTML colors in html img1](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img1.jpg)
Example
![Colors In HTML colors in html img2](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img2.jpg)
Output
![Colors In HTML colors in html img3](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img3.jpg)
Hexa Codes in HTML Colors
In this method, 6 digit codes are employed to denote colors. Each and every code is preceded by # hash sign. The underlying colors represents hexadecimal notation
![Colors In HTML colors in html img4](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img4.jpg)
Example
![Colors In HTML colors in html img5](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img5.jpg)
Output
![Colors In HTML colors in html img6](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img6.jpg)
RGB Values in HTML Colors
It is represented by employing rgb () function. It takes 3 values (red green blue for each value). The value can be range between 0 – 255 or percentage. The list shows RGB values and few color
![Colors In HTML colors in html img7](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img7.jpg)
Example
![Colors In HTML colors in html img8](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img8.jpg)
Output
![Colors In HTML colors in html img9](https://www.assignmenthelp.net/webimg/ahp/html-assignment-help/colors-in-html-img9.jpg)