HTML background attribute gives better look of color effect and image effect then default background. In HTML page by default set background color is white color, you can change background color using background attribute or background-color attribute.
HTML web page, you can set background two types:
1) Background Color – bgcolor,
2) Background Image – background-image:url.
HTML Background Color:
HTML web page using background attribute or background-color attribute, you can set attractive color or deferent type of color and display the page element on a color page. In HTML web page use bgcolor attributer directly in the tag, like <body> tag and <div> tag for give a background color. You can use background attribute using CSS in your HTML web page.
For Example:
<!DOCTYPE html> <html> <head> <title>HTML-Background</title> </head> <body bgcolor="yellow"> <h3>This is My First Web Page</h3> </body> </html>
HTML Background Image:
In HTML web page, you can add a background image or wallpaper. HTML body tag, you can specify the background attribute and set a background image. A HTML web page, you can set background image in a paragraph and a <div> tag.
In HTML page using CSS, you can set image size or any more. That’s like image-size, image-repeat, image-origin etc.
For Example:
<!DOCTYPE html> <html> <head> <title>HTML-Background</title> </head> <body style="background-image:url('datainflow.jpg')"> <h3>This is My First Web Page</h3> </body> </html>
NICCCCCCCCCCCCCCCCCCCCC