Core idea

Methods to add CSS

  1. Inline CSS (single element)
<html style="CSS"></html>
  1. Internal CSS (full webpage)
<html>
  <head>
    <style>
      html {
        /* CSS */
      }
    </style>
  </head>
</html>
  1. External CSS

Used for:

HTML file:

<link rel="stylesheet" href=""/>

CSS file:

html {
  background: green;
}

CSS selectors

Universal selector:

* {
  /* CSS */
}

Element selector: