Quiz
- CSS selectors / I would like to hear more about CSS selectors and how they are useful!
Sure. CSS is all about applying formatting/style rules to various elements of the page. The HTML defines the elements (paragraphs, list items, headers, sections, divs, ...) and the CSS language allows us to select one or more elements and then apply rules to them.
The selector language can get complicated, but the basics are:
- id
- class
- tag
That's in order of descending priority.
- Can we talk more about box properties such as margin, border, padding and width for CSS?
For sure. We can use the web developer tool to play with this very element.
- css! also the validator part.
CSS also needs to be valid, though that's probably less important than HTML validity.
- I feel I am still a bit confused about the concept of URL and Caches; it would also be really helpful if we could go over examples of CSS layouts in class together!
CSS layouts can be complicated, but the basics aren't too bad: Block elements stack vertically and fill their container horizontally. Inline elements flow like words in a paragraph.
- I'm most unfamiliar with CSS layout options like padding and margins and would like to discuss that more in class and learn about it on my own.
The W3schools site has lots of useful CSS information