Introduction: CSS (Cascading Style Sheets) is a stylesheet language used for describing the look and formatting of a document written…