What is CSS
- CSS stands for cascading style sheet
- it's a style sheet language not a programming language nor a markup language
Terminologies
// a ruleset: a set of css properties associated with a css selector
.hi {margin-block:1px;}
// a selector
.hi
// a declaration = property: value;
margin-block:1px;
// a property
margin-block
// a value
1px
// a declaration block
{margin-block:1px;color:red;}
// a statement = a ruleset, @font-face, or @import, ...etc.
@import url("imported-styles.css")
@font-face {font-family:"Trickster";}
h1{
margin-block:2rem;
}