What does it mean to declare something?


#1

What does it mean to declare a CSS selector?


#2

Eg.

body {
  font-size: 100%;
}

Above is a selector rule declaration.

Everything in CSS is a declaration. There is no logic.


#3

but what does it mean in css to declare something and, thanks


#4

A declaration is a statement that always applies, unconditionally. That’s why we call them rulesets.


#5

sorry but i still dont understand


#6

thank you, anyway mtf


#7

“Today the Mayor declared it as CSS Appreciation Day.”

When we write a selector rule, everything inside the curly braces is a declaration.

/* everything below is a ruleset */
selector {
    property: value;    /* this is a declaration */
}    
/* everything is included in the declaration block {}

#8

this helped and i went on and reviewed other sources a bit more, thanks


#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.