5. CSS variables #

Created Saturday 29 August 2020

  1. to declare, and initialize, syntax is

    –variable_name:property_value;

  2. to use, just write:

    var(–variable, fallback_value)

e.g :root{ –bgcolor: red; –fontcolor: blue; } body { –bgp: red; background-color: var(–bgp); }

Note: