HTML Backgrounds Examples
HTML Backgrounds Examples
<!DOCTYPE html>
<html>
<head>
<title>HTML Background Colors</title>
</head>
<body>
<h2 style="background-color:red">
Background-color set by using red
</h2>
<h2 style="background-color:orange">
Background-color set by using orange
</h2>
<h2 style="background-color:yellow">
Background-color set by using yellow
</h2>
<h2 style="background-color:blue;color:white">
Background-color set by using blue
</h2>
<h2 style="background-color:cyan">
Background-color set by using cyan
</h2>
</body>
</html>
Output
HTMLl Background with Images Examples
For Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Background Images Example </title>
</head>
<body>
<table background = "/images/html.gif" width = "100%" height = "100">
<tr>
<td>This background is filled up with HTML image.</td>
</tr>
</table>
</body>
</html>
Output