0

What are the styling keywords such as top, margin, padding, background-color etc.. called in CSS?

Are they commonly referred to as key:value pairs or do they have other names?

1 Answer 1

1

They're called properties. And yes, it's key:value pairs for each selector. You can read more about them here: https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax

2
  • Judging by his asking history I'm sure he'll get to it without a nag.
    – BoltClock
    Commented Jan 10, 2016 at 5:44
  • @torazaburo: i changed my ref with yours, if you don't mind, in my answer. I generally don't like w3schools, but, i just wanted to answer quickly. w3schools appear generally on top of the list when you google. Commented Jan 10, 2016 at 5:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.