HTML Images; CSS Color & Text

HTML Book

Chapter 5 “images” ::

Where to Place Images in Your Code

  1. before a paragraph The paragraph starts on a new line after the image.
  2. inside the start of a paragraph The first row of text aligns withthe bottom of the image.
  3. in the middle of aparagraph The image is placed between the words of the paragraph that it appears in.

Three Rules for Creating Images

  1. Save images in the right format.
  2. Save images at the right size.
  3. Use the correct resolution .

Image Formats:

  1. JPEG Whenever you have many different colors in a picture you should use a JPEG.
  2. GIF and PNG when saving images with few colors or large areas of the same color

Resize the images :

  1. REDUCING IMAGE SIZE You can reduce the size of images to create a smaller version of the image.
    • Example: If your image is 600 pixels wide and 300 pixels tall, you can reduce the size of the image by 50%.
  2. INCREASING IMAGE SIZE You can’t increase the size of photos significantly without affecting the image quality.
    • Example: If your image is only 100 pixels wide by 50 pixels tall, increasing the size by 300% would result in poor quality.
  3. CHANGING SHAPE Only some images can be cropped without losing valuable information (see next page).
    • Example: If your image is 300 pixels square, you can remove parts of it, but in doing so you might lose valuable information.

Cropping Images

 

 

Chapter 11 “Color”

 

 

Chapter 12 “Text”

Typeface Terminology

  1. Serif Serif fonts have extra details on the ends of the main strokes of the letters. These details are known as serifs.
  2. Sans-Serif Sans-serif fonts have straight ends to letters, and therefore have a much cleaner design.
  3. Monospace Every letter in a monospace (or fixed-width) font is the same width. (Non-monospace fonts have different widths.)

Specifying Typefaces

Size of Type

Units of Type Size

Units of Type Size