Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing

CSS

CSS color property Vs. HTML font color

Notes:

CSS color property vs. HTML font tag color attribute:
It is used to specify the text color to be applied
Values: color name | hex value | rgb(0-255,0-255,0-255) | rgba(0-255,0-255,0-255,0-1) | transparent

color name = ex: red, green, blue etc.
hex color value = ex: #ff0000, #00ff00, #0000ff etc.
rdb() = ex: rgb(255,0,0), rgb(0,255,0), rgb(0,0,255) etc.
rgba() = ex: rgba(255,0,0,1), rgba(0,255,0,1), rgba(0,0,255,1) etc.

Interview Questions: