Basics CSS

djamesmck57's version from 2017-06-12 14:54


Question Answer
selectorA selector designates exactly which element or elements within our HTML to target and apply styles (such as color, size, and position) to
p {..}selectors
popertya property determines the styles that will be applied to that element
valuesNow we can determine the behavior of that property with a value. Values can be identified as the text between the colon, :, and semicolon, ;
p{color: orange}value
type selectorType selectors target elements by their element type. For example, should we wish to target all division elements
div {...}type selector
class selectorClass selectors allow us to select an element based on the element’s class attribute value.
.awesomeclass selector
id selectorID selectors are even more precise than class selectors, as they target only one unique element at a time
#shayhoweid selector