Codecademy Day 2, Module 4: CSS Is the Makeup of HTML — Part 2
I’m moving right along to the fourth module where I actually learn how to code CSS.
This module taught me how to start making my HTML look all pretty. Here’s what I learned:
- Selectors: You can chose a which type of element you’d like to stylize by using selectors which look like this:
p {
}
2. Declarations = property + value. Property is the type of style like color or font size while value is the specifications of the property like blue or 12.
An example declaration is:
color: blue;
Declarations always end with a semicolon.
3. Rule = Selector + Declaration
4. The universal selector applies the same style to all elements. It looks like this:
* {
}
5. CSS commenting serves the same function as the HTML version but it looks like this: /* comment_here */
Please comment your thoughts, questions, and suggestions below, thanks!