reading-notes

HTML Images

<img src="img_girl.jpg" alt="Girl in a jacket" />

HTML Images Syntax

The <img> tag has two required attributes:

CSS Colors

The <color> CSS data type represents a color. A <color> may also include an alpha-channel transparency value, indicating how the color should composite with its background.

color The properties that allow you to control the appearance of text can be split into two groups:

JPEG vs PNG vs GIF:

Use JPEG format for all images that contain a natural scene or photograph where variation in colour and intensity is smooth. Use PNG format for any image that needs transparency or for images with text & objects with sharp contrast edges like logos. Use GIF format for images that contain animations.