reading-notes

Class 5 Notes

What is CSS

Source: https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/What_is_CSS

‘h1 { color: red; font-size: 5em; }’

- h1 is the selector - the element to be styled
- then curly braces {}
- inside the braces are declarations 
    1. form is property and value in pairs
    2. example, property is color and value is red
- This example has two declarations: color and font-size

How to Add CSS

Source: https://www.w3schools.com/css/css_howto.asp

  1. External CSS
    • Changes the look of a site by changing one file
    • defined within the element, inside the <head> section of HTML
    • ex.
    • can be written in any text editor, and must be saved with .css extension
    • external .css file shouldn’t have HTML tags
  2. Internal CSS
    • can be used if one single HTML page has a unique style
    • defined inside the
  3. Inline CSS
    • used to apply a unique style for a single element
    • add the style attribute to the relevant element; style attribute can contain any CSS property

CSS Color

Source: https://www.w3schools.com/cssref/pr_text_color.php

body { color: red; }

h1 { color: #00ff00; }

p.ex { color: rgb (0,0,255); }


Reference Sheets

Things I want To Know More About

Nothing at this time.

URL: https://s-glass.github.io/reading-notes/102/class5notes