Common CSS Terms Flashcards
Has no effect on the display of the page that’s styled; it’s for the CSS author to read and better understand the code.
Comments
A single section of CSS including the selector, the curly braces, and the different lines with properties and values.
Rule Set
The section of CSS where the property/value pairs appear.
Declaration Block
Any single line of CSS that appears between the curly braces, whether shorthand or longhand.
Declaration
What appears before the colon in any line of CSS.
Property
What appears immediately after the colon in any line of CSS.
Value
The part of the CSS line that selects what element to target with the property/value pair.
Selector
A selector that targets an element by the tag name.
Element Type Selector
Targets an element by its class attributes.
Class Selector
Targets an element by its unique ID
ID Selector
Matches any element within the context in which it’s placed in a selector.
Universal Selector
Selects an element to style based on an attribute and/or attribute value.
Attribute Selector
Works similarly to a regular CSS class, except it’s not explicitly declared in the HTML.
Pseudo Class
Target “virtual” elements that can change depending on the actual HTML.
Pseudo Element
The character in a selector that connects two selectors together.
Combinator