Introduction to CSS CSS stands for Cascading Style Sheets. CSS used to describe the presentation of a HTML document. It allows you to apply styles to HTML documents by prescribing colors, fonts, spacing and positioning. CSS styles are applied to the HTML element using selectors. CSS Syntax CSS syntax consists of a selector and a declaration block. The selector targets an HTML element, and the declaration block contains property value pairs. selector { property : value ; } Enter fullscreen mode Exit fullscreen mode Example: p { color : red ; } Enter fullscreen mode Exit fullscreen mode Types of CSS There are three major ways to apply CSS to web pages: Inline, Internal and External CSS. 1. Inline CSS It is used to apply CSS styles directly to the HTML tags by using the “style” attribute. The style attribute is a global attribute that can be used with all HTML tags. Inline CSS is used to apply a unique style to a single HTML element.…