Summary 6: HTML Media and CSS Styling

HTML Images

Images can improve the design and the appearance of a web page. The HTML <img> tag is used to embed an image in a web page.Images are not technically inserted into a web page; images are linked to web pages.

CSS Colors

Colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values. CSS/HTML support 140 standard color names. In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.

CSS Backgrounds

The CSS background properties are used to add background effects for elements. The opacity property specifies the opacity/transparency of an element. It can take a value from 0.0 - 1.0. The lower value, the more transparent. If you do not want to apply opacity to child elements, like in our example above, use RGBA color values.