CSS (Cascading Style Sheets)
https://www.w3.org/Style/CSS/Overview.en.html
Benefits of CSS
HTML Default Display
Including CSS in HTML
<link></link>
OR
<style>
@import url("./style.css");</style><style>
…</style>
<p>Some text.</p>
CSS Structure
Syntax: CSS Rules
p {
color: white;
background: #C210A0;
}
Basic Selectors
name {
e.g
p {
.greeting {
Basic Properties
Font Family
Units of Measurement - Absolute Units
Units of Measurement - Relative Units
Colours
Combining selectors
Relational Selectors
Pseudo-classes
Pseudo-elements
Cascading and precedence
Cascade
Browser default
External sheet
Embedded
Inline
Specificity
Wildcard
tag name
class
id
Inheritance
Flow
The Box Model