Assessment wanted for selectors skill test 1, from task1 to task5

Hi,
I hope you are well and healthy.

Please assess my work. This assessment is a skill test for CSS selectors.

The assessment link is: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Selectors_Tasks

My work links are :
Task 1: https://jsfiddle.net/bepul_hossain/Lgu07pra/8/
Task 2: https://jsfiddle.net/bepul_hossain/Lgu07pra/15/
Task 3: https://jsfiddle.net/bepul_hossain/Lgu07pra/17/
Task 4: https://jsfiddle.net/bepul_hossain/Lgu07pra/13/
Task 5: https://jsfiddle.net/bepul_hossain/Lgu07pra/14/

Thank you in advance.
Have a nice day! :slightly_smiling_face:

Bepul Hossain

Hi @bepul

Great work! :clap:
I have only found one small mistake: In task 2 the third and fourth selector should only match if the element also have the class “alert”. Do you know how you can achieve this?

Cheers,
Michael

No. I am not sure. Is this solution right? https://jsfiddle.net/bepul_hossain/Lgu07pra/22/
If it is wrong, please send me a demo?

Regards,
Bepul Hossain

1 Like

That’s correct. When we use two (or more) classes without a space, it means that both (all) classes need to be on the element.

It was a great teaches for me.

Thanks a lot.

1 Like