Var

CSS variables have access to the DOM which means that you can create variables with local or global scope change the. Its typical…