HTML5 Color tag Examples with source code

Colors in HTML5

HTML5 colors html5 using Colors

Colors in HTML5 HTML


In HTML by default it will take black text to be display as output, using style of CSS property to beautify HTML forms as we required.

Using Color Names in HTML5

On style property value as color name to change the colors requested.

Example: <h2 style="background-color:blue;">Blue</h2> <h2 style="background-color:green;">Green</h2> <h2 style="background-color:gray;">Gray</h2>


HTML5 Text Color Change in HTML5 form
HTML5 form Text Color change

Example: <h2 style="color:blue;">Hello HTML Learner</h2> <h2 style="color:green;">Hello HTML Learner</h2> <h2 style="color:gray;">Hello HTML Learner</h2>