Sure. Here's an example from these very notes and readings:
After reading these two rules, the H2 elements have been styled in terms of both color and border.
In general, you add more and more rules to your CSS file(s) until things look the way you want. If they conflict:
as an example of the latter, these answers are in a DIV. But I also addeded a class:
Yes, that's right. I just decide on a name (such as ans) and use it in the HTML and the CSS.
Great question! There are two subtle but important differences:
The distance is 30px, not 50px.
Padding never collapses.
Note that margin collapse is not a bug. It's part of the language because that's what people typically want. But maybe not always.
Yes! Good thinking!
However, hyperlinks have underlining by default, so you might want to remove that. Or, maybe some earlier or more general rule has added an underline, and you want to override that.
How so? Let's play with the dev tools here, and hopefully it'll be more clear.
Yes! Later in the course, we'll learn how dynamically add elements, and if we wanted/needed to add multiple elements (e.g. we just fetched a bunch of new posts from some database in the cloud), a loop or mapping operation would be the right idea.
You mean hyperlinking with a ID? Yes, I agree, that's pretty cool. I love having a table of contents.
Some, but not all. In general, I don't think memorization is a useful thing in a world where web search is always handy.
However, part of the definition of expertise is not having to look everything up. Some things you just know, from experience.
You'll practice certain ones in assignments and such, and so you'll get to know those.
Maybe I'll allow folks to bring in self-created reference material into the exam.