What is CSS?
- CSS is the language we use to style a Web page.
- CSS stands for Cascading Style Sheets
- CSS describes how HTML elements are to be displayed on screen, paper, or in other media
- CSS saves a lot of work. It can control the layout of multiple web pages all at once
- External stylesheets are stored in CSS files
*CSS Syntax *:
- A CSS rule consists of a selector and a declaration block:
- The selector points to the HTML element you want to style.
- The declaration block contains one or more declarations separated by semicolons.
- Each declaration includes a CSS property name and a value, separated by a colon.
- Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
The CSS Box Model
- In CSS, the term "box model" is used when talking about web design and layout.
- The CSS box model is essentially a box that wraps around every HTML element.
- Every box consists of four parts: content, padding, borders and margins.
The image below illustrates the CSS box model
CSS Backgrounds
The CSS background properties are used to add background effects for elements.
Reference : https://www.w3schools.com/css/css_background.asp



Top comments (1)
Good