Colors are very important to good look your pages, website etc. HTML Colors are used in Tables, Page Background , Fonts or Text, Borders, etc.
Font or Text Color
In Font or text color only specific word , paragraph, and heading colored.
We can specify the text color with the following different attribute values.
- Color Name
- RGB value
- Hex Number
Example:-
This code used in <body> tag to all font.
<font color="orange">
This code used in specific word.
<h1 style="color:Orange;">HTML Language Study</h1>
Output:-

Background color used to specify word , entire page, paragraph background etc.
Example:-
This code used in specific line.
<h1 style="background-color:pink;">HTML Language Study</h1>
This code used in full page.
<body bgcolor="pink">
Output:-

Border color used to specify word , entire page, paragraph border etc.
Example:-
This code used in specific word.
<h1 style="border:2px solid Red;">HTML Language Study</h1>
This code used for page border.
<body style="border:2px solid Red;">
Output:-

0 Comments
Post a Comment
Please do not enter any spam in the comment box.