icon

KE Programmer

HTML and CSS Cheatsheet
Published on Jan 25, 2013 20:10 by KE Programmer

Table of Contents

1. HTML Elements

1.1. Block Elements

1.2. Inline Elements

1.3. Form Input Elements

2. CSS

2.1. Box Model

  • float – left, right.
  • clear – left, right, both.
  • border-radius – top-left top-right bottom-left bottom-right (length values like em, pixels etc).
  • margin – top right bottom left (width values).
  • border – width style color.
  • padding – top right bottom left.
  • width – width-value.
  • height – height-value.

2.2. Positioning

  • position:
    • static – default behavior, in the flow.
    • relative – relative parent element, original space reserved, in the flow.
    • absolute – out of flow.
    • fixed – relative to screen, does not move.

2.3. Font properties

2.4. Text Properties

2.5. Background

2.6. List styles

2.7. Others

See excellent tutorials at:

[Previously published here]