Class 5 Reading Assignment
These are my notes from Module 4.
What is CSS?
- CSS: Style, it is a language for specifying how documents are presented to users — how they are styled, laid out, etc.
- selector “{ property: value}” for ex. body “{color: green;}
Inserting CSS
- External CSS: you can change the look of an entire website by changing just one file!
- Internal CSS: An internal style sheet may be used if one single HTML page has a unique style.
- Inline CSS: An inline style may be used to apply a unique style for a single element.
Terms
- CSS selector: is the part of a CSS rule that describes what elements in a document the rule will match. The matching elements will have the rule’s specified style applied to them.
- Property: is a characteristic (like color) whose associated value defines one aspect of how the browser should display the element.
- Modules: As there are so many things that you could style using CSS, the language is broken down into modules.
4.
Cheat Sheet
- Float : allows the different elements to move around
- id selector: enables the grabbing of a specific element id=”main-pic” (for html) #hero {float: left;} (for CSS)
- Class: allows elements to be grouped together. Class=”lower sections” “.” for CSS to apply to the class that you want
-
References
- CSS Reference page
2.