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>

HTML5 Border Colors tutorial

Border Color Change in HTML


Using this style property can set the color of border

Example: <h2 style="border:1px solid blue;">Hello HTML Learner</h2> <h2 style="border:1px solid green;"> Hello HTML Learner </h2> <h2 style="border:1px solid gray;"> Hello HTML Learner </h2>


Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at info@harisystems.com. we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2020 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2020