HTML Images; CSS Color & Text.
Images:

Choosing Images for Your Site.
-
Images should:
-
Be relevant
-
Convey information
-
Convey the right mood
-
Be instantly recognisable
-
Fit the color palette
-
Online extra:
We have provided an online gallery that helps you choose the right image for your website. You can find it in the tools section of the site accompanying this book.
-
Storing Images on Your Site:
As a website grows, keeping images in a separate folder helps you understand how the site is organized. Here you can see an example of the files for a website; all of the images are stored in a folder called images.
-
Adding 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. The <img> tag creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
The <img> tag has two required attributes:
src - Specifies the path to the image
alt - Specifies an alternate text for the image
Example:
<img src="url" alt="alternatetext">
-
Height & Width of Images:
-
height: This specifies the height of the image in pixels.
-
width: This specifies the width of the image in pixels.
color:-

Color Names Supported by All Browsers.
-
Colors in CSS can be specified by the following methods:
-
Hexadecimal colors
-
Hexadecimal colors with transparency
-
RGB colors
-
RGBA colors
-
HSL colors
-
HSLA colors
-
Predefined/Cross-browser color names
-
With the currentcolor keyword
Background Color:-
The background-color property sets the background color of an element.
The background of an element is the total size of the element, including padding and border (but not the margin).
Syntax
background-color: color|transparent|initial|inherit;
-
Text
