Is setProperty used in leu of CSS?

Just curious, is this being used in place of the students learning CSS? Or is this considered an event handler?

setProperty is used for changing properties found in the Design tab. It’s not an event handler. The setStyle block can be used to handle CSS.

setStyle("id", "property: value;");