Reading-notes

HTML Images; CSS Color & Text:

Images

syntax of adding < img >

Image Resolution

Images created for the web should be saved at a resolution of 72 ppi. The higher the resolution of the image, the larger the size of the file.

Adding Images

src this tells the browser where it can find the image file

alt Tis prvide a text This description of the image that describes the image if you can not see it.

Height & Width of Images:

height

width

Img Formating

JPEG vs PNG vs GIF

Several statistics reports indicate that these 3 formats together comprise of more than 95% of all images loaded on websites

JPEG

is a lossy compression specification that takes advantage of human perception. It can achieve compression ratios of 1:10 without any perceivable difference in quality.

PNG

is a lossless image format using DEFLATE compression. No data is lost during compression and no compression artefacts are introduced in the image.

GIF

is also a lossless image format that uses LZW compression algorithm.

Aligning Images Horizontally

This aligns the image to the left (allowing text to flow around its right-hand side)

This aligns the image to the right (allowing text to flow around its left-hand side).

This aligns the first line of the surrounding text with the top of the image .

This aligns the first line of the sueeonding text with the bottom of the image .

Fi gure and Figure Caption

Color

Foreground Color

Text

Type Scales

Unit of size types

Underline & Strike (text-decoration)

Drop Shadow

text-shadow :The text-shadow property has become commonly used despite lacking support in all browsers. It is used to create a drop shadow, which is a dark version of the word just behind it and slightly offset.