Based on the syntax error message, you should remove the BackColor option on the StyleAttrs statement. Also, to run the…