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.…