CSS Cheatsheet

Add New Row








CSS Selectors and How to Use Them

Accessing HTML Elements How to Use Them
Selector HTML element to Select. This can be 'h1', 'p', 'body' which will select all of these elements in your HTML doc.
Class Within each element, a class can be assigned through the syntax 'class="x". This is accessed through dot notation in CSS. For Example '.x'
ID Similar to class, an ID can also be assigned however this is limited to one selector per HTML document. This is more specific than both class and selector. Accessed through # notation. For Example '#x'
More to be added

CSS Keys and Potential Values

Common Key Common Values
color Used to Change the color of text
background-image: url("") Used to add a background image.
More to be added