Adam Salma
Adam Salma

Reputation: 1836

HTML: Elements and attributes. CSS: Selectors and ...?

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?

Upvotes: 0

Views: 35

Answers (1)

Ahmet Cetin
Ahmet Cetin

Reputation: 3823

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

Upvotes: 1

Related Questions