-->

HTML Background Color Code

HTML Background Color

HTML Background Color


Html background Color: 


Increases the beautiful of background color. HTML code can give different types color of background.  Several tags or elements are used to change the background  color of the text. Many tags or elements using for make defferent style for text color. Color name or number code that is to say hex code is used to change text color in HTML documents. The hex code loke like: #FF0000. This #FF0000 hex code using for red color. Background Colors are provided through many HTML elements or tags. So you can use more different background  color for loking good your Content.

HTML All Color With Hex code.


Html background Color Codes :


(Full width area)

Result:

Html background color!

This green Used color name, and This color Code Used  inline CSS with the HTML <div> tag.

Html background Color Codes :


(Only content area)

Result:

HTML Background Color!

This Cornsilk Used color name, and this color code inline CSS with the HTML <span> tag.

Html background Color Codes :


(Full body Color)

Result:

Copy this code and Click hare past and click The Refresh button.

This #FF0000 used color hex code, That can used   inline CSS with the <body> tag.

Html background Color Codes :



Result:

HTML Background Color!

This Yellow color used not in any color name or color hex code. This Yellow color maked a tag it's <mark> tag. This <mark> tag working two way first that marked your content and second is that give Yellow background color.

Html background Color Codes :



Result:

Copy this code and Click hare past and click The Refresh button.

This green color Used color name , and This color Code Used internal CSS with HTML <body> tag.


Html background Color Codes :



Result:

HTML Background Color!
This Orange color Used color Hex code , and This color Code Used internal CSS with HTML <p> tag.

Html background Color Codes :



Result:

HTML Background Color!

This blue color Used color name , and This color Code Used internal CSS with HTML <span> tag.

Html background Color Codes :



Result:

HTML Background Color!


This Orange color  Used color name, and This color Code Used internal CSS with HTML <div> tag.

We can use the three types of CSS to give background color to the text. The three type of CSS is:

★Inline CSS
★Internal CSS
★External CSS

★Inline CSS:

Inline CSS Lives in inside to tthe html tag. Like:

<body style="background-color:Cyan;">HTML body Background Color!
</body>

★Internal CSS

Internal CSS Lives in out outside to the html tag, but it can target to the html tag. Like:


<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: green;}
</style>
</head>
<body>
HTML Background Color!
</body>
</html>


★External CSS:

External CSS Lives in out side the html xml page, but it can target to the xlm file location. Like:

<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

Example:

HTML Background Color


Facebook Comments

Follow by Email