HTML Color Picke
To specify background color:
To specify border color:
background
property against the body
tag.background
shorthand property, we use a property more specific to the actual effect we want to achieve. Doing this is simply an alternative - it's your choice which method you use.p
tag using the background-color
property. You can apply background color to any other HTML element, such as a div
tag, body
tag etc. Here, we also apply color to the text by using the color
property. Source Code | Result |
---|---|
This text has got a background color applied. You could also apply background color to the whole page if you like. |
p
tag using the background-color
property. You can apply background color to any HTML element, such as a div
tag, body
tag etc. Here, we also apply color to the text by using the color
property. Source Code | Result |
---|---|
This div tag has got a background image. You could also apply a background image to the whole page if you like. |
Source Code | Result |
---|---|
This HTML background code demonstrates how to keep the background image fixed. Scroll down to see what I mean - the background image stays in the same position. |
This page contains HTML background code. Feel free to copy and paste the HTML background code into your own website, blog, MySpace page, or other HTML document. And feel free to modify the code as y…
background
property against the body
tag.background
shorthand property, we use a property more specific to the actual effect we want to achieve. Doing this is simply an alternative - it's your choice which method you use.p
tag using the background-color
property. You can apply background color to any other HTML element, such as a div
tag, body
tag etc. Here, we also apply color to the text by using the color
property. Source Code | Result |
---|---|
This text has got a background color applied. You could also apply background color to the whole page if you like. |
p
tag using the background-color
property. You can apply background color to any HTML element, such as a div
tag, body
tag etc. Here, we also apply color to the text by using the color
property. Source Code | Result |
---|---|
This div tag has got a background image. You could also apply a background image to the whole page if you like. |
Source Code | Result |
---|---|
This HTML background code demonstrates how to keep the background image fixed. Scroll down to see what I mean - the background image stays in the same position. |
This page contains HTML background code. Feel free to copy and paste the HTML background code into your own website, blog, MySpace page, or other HTML document. And feel free to modify the code as y…