Declaration
noun
say it: “dek-luh-RAY-shun” /ˌdɛkləˈreɪʃən/
One line of styling inside a CSS rule: a property, a colon, a value and a semicolon, such as color: teal;
What is a declaration in CSS?
A declaration is one styling instruction: a property, a colon, a value and a semicolon.
.banner {
background-color: gold; /* one declaration */
}
In a sentence
- “I added one more declaration, font-weight: bold;, to make the prices on the menu stand out.”
Level: Novice · More CSS terms at this level
Updated