Source: https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/What_is_CSS
CSS = Cascading Style Sheets; allows you to control how HTML elements look in a browser
It can be used for basic text styling like color, size, layout, and effects like animation.
Example
‘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
CSS components are broken down into modules (ex. backgrounds and borders)
CSS Specifications are developed by the CSS Working Group within the W3C
Not all browsers have CSS implemented as a feature, so you will need to check implementation status
Source: https://www.w3schools.com/css/css_howto.asp
Multiple Style Sheets: if some properties have been defined for the same selector/element in different style sheets, the value from the last read style sheet will be used.
Cascading Order: with more than one style specified for an HTML element, the following rules will apply:
Source: https://www.w3schools.com/cssref/pr_text_color.php
body { color: red; }
h1 { color: #00ff00; }
p.ex { color: rgb (0,0,255); }
The color property specifies the color of text
Syntax: color: ‘color|initial|inherit;’
Nothing at this time.
URL: https://s-glass.github.io/reading-notes/102/class5notes