Background image

Notes:

How to apply background image to web page?
html background attribute:
background is an attribute with respect to body tag. It is used to apply background image to whole web page.
background attribute takes the address of the image.
Lossless file format :
use algorithms which allows the original data to be reconstructed when decompressed.
Lossy file format (irreversible) :
use algorithms which does not allow the original data to be reconstructed when decompressed.
Image file formats:
BMP : Bitmap
Never use
Lossy file format
JPEG: Joint Pictures Experts Group :
use when transparency not matters.
Lossy file format
PNG : Portable Network Graphics :
use when transparency matters.
Lossless file format
GIF: Graphics Interchange Format :
use when animation matters.
Lossless file format

Interview Questions: