A Lazy Introduction to CSS

·

1 min read

A Lazy Introduction to CSS

CSS is used to style webpages, simply. CSS stands for 'Cascading Style Sheets. Here I am trying to remember if it is "styles" or "style" until I Googled it, phew.

It helps us bring life to plain HTML elements. It is used for describing the look of HTML elements, also how they are placed, presented and displayed on a web page.

Look below for how to write CSS. ;)

CSS Syntax

body {
  background-color: orange;
}

h1 {
  color: lightblue;
  text-align: center;
}

In CSS we have the selector, the declaration block, the property and the value. 'body' and 'h1' are both examples of selectors.

The declaration block is within the parenthesis {}. Examples of properties are 'color' and 'text-align'. While values are 'lightblue' and 'center'.

So, there you have it. A lazy introduction to css.

References:

CSS Introduction (w3schools.com)

Introduction to CSS | CSS Tutorial for Beginners (mygreatlearning.com)

#20daysinFrontendwithAA