Assessment wanted for Selectors skill test 1,2

Assessment wanted for selectors skill test 2

Link to task: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Selectors_Tasks#assessment_or_further_help

I have a question if I want to use only one css file in task 1 and task 2 for example. Is it correct to write it this way, to override the styles of task 1?
Or would it be better to write a css file for each html?

If someone can help me I would appreciate it very much!

Link to my code:
Task 2: https://codepen.io/jarosem/pen/zYaErxr

Well done, @Julie03!

All rules are correct.

I recommend writing one CodePen per task. This way they are neatly separated and easier to grade. There were learners who made one CodePen and put all tasks into it one after the other(HTML and CSS). If you want to do this then you will need to make sure the CSS rules don’t interfere each other. You could for example use wrapper elements with classes container1, container2 and so on.

Have a nice day,
Michael