Presenter: Diana Ignat
The basics of styling the Web
- colors and backgrounds
- fonts and text styles
- spacing and alignment
- responsive design for different devices
- animations and effects
Style in html tag
In <style> tag inside <head> tag
Link to a .css file
Selector: h1
Properties: color, font-size
Values: green, 36px
Structure of a rule
Example
Colors
- use names: red, blue
- or codes: HEX(#ff0000), RGB(rgb(255, 0, 0))
Fonts
- choose which font family to use
- adjust size and weight of text
Margin
- The space outside an element's border
- Created distance between elements
Padding
- The space inside an element's border
- Adds space between the content and the border
Border
- The line surrounding the box