Important Colors Names and Color Codes in HTML
Colors is most valuable things in our life. Without colors be cannot express our ideas . In electronic things (TV and computer display) use of RGB colors ( Red, Green, Blue). In HTML use of color name with codes. When in HTML methods describing and specifying those colors output in web page show colors.
In
HTML colors write to
use with proper hex and colors (as like for put white color in our
web page be have to write code #ffffff )and it colors code use in CSS
property with HTML. CSS property be use for a particular situation will
depend on what it is you're applying color to.
For example
In CSS properties use of two types foreground-color property (for applying color to an element's text ) and background-color property (for applying color to an element's background).
HTML Color Name :-
HTML Color codes :-
RGB (Red, Green, Blue):
With HTML, RGB color values can be specified using this formula: RGB (red, green, blue).Each parameter (red, green, and blue) defines the intensity of the color between 0 and 255.
!DOCTYPE html>
<html>
<body>
<h2 style="background-color:red">
Background-color set by using red
</h2>
<h2 style="background-color:orange">
Background-color set by using orange
</h2>
<h2 style="background-color:yellow">
Background-color set by using yellow
</h2>
<h2 style="background-color:blue;color:white">
Background-color set by using blue
</h2>
<h2 style="background-color:cyan">
Background-color set by using cyan
</h2>
</body>
</html>
CSS Coding for Colors (output) :-
Background-color set by using red
Background-color set by using orange
Background-color set by using yellow
Background-color set by using blue
Background-color set by using cyane
CSS supports140 standard color names.
Comments