Use Attribute Selectors to Style Elements. Help with this please. Is there anything I'm doing wrong?

[type=‘checkbox’] {

  margin: 10px 0px 15px 0px; 


The type attribute selector should be used to select the checkboxes.

The top margins of the checkboxes should be 10px.

The bottom margins of the checkboxes should be 15px.

You’re so close! Your properties are correct, and you’ve got the right attribute selector.

I don’t want to give away the answer, so my question to you is: what element (with that attribute) are you looking for?


Hi Matthew! Thanks for your help. I checked carefully and realised my CSS style was not properly closed somewhere along the code line. Very happy now :grinning:


Awesome! I actually got it wrong, I thought it needed to follow an element :sweat_smile:

Learned something new, so thank you!

1 Like