Lots of tasks im failing at. Helppppppp pleaaseee!
Failed:11. You should add a :focus pseudo-class to the input and textarea elements to change their border color when focused. Use a list selector in the given order.
Failed:12. The input, select and textarea elements should have an :invalid pseudo-class that changes the border color to red when invalid input is detected. Use a list selector in the given order.
Failed:13. The input, select and textarea elements should have a :valid pseudo-class that changes the border color to green when valid input is entered. Use a list selector in the given order.
15. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a border color when the radio button is selected.
Failed:16. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a background color when the radio button is selected.
Your code has three problems: you wrote some CSS rules twice, forgot to write the :invalid rule, and your HTML has duplicate IDs and the textarea is inside the radio group.
what about now? i rewrote it and still got some things wrong :
Failed:11. You should add a :focus pseudo-class to the input and textarea elements to change their border color when focused. Use a list selector in the given order.
Failed:12. The input, select and textarea elements should have an :invalid pseudo-class that changes the border color to red when invalid input is detected. Use a list selector in the given order.
Failed:13. The input, select and textarea elements should have a :valid pseudo-class that changes the border color to green when valid input is entered. Use a list selector in the given order.
Failed:15. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a border color when the radio button is selected.
Failed:16. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a background color when the radio button is selected.
Try using border instead of outline, and make sure your selectors are written exactly as input, select, textarea for the :focus, :invalid, and :valid rules.
That helped solve some problems, but I still got 13, 15 & 16 wrong. One thing I noticed is that the :focus and the :valid cannot have the same attribute otherwise :valid supercedes :focus. I kept rechecking the css until input, select and textarea did not look like input, sleect and textarea.
Failed:13. The input, select and textarea elements should have a :valid pseudo-class that changes the border color to green when valid input is entered. Use a list selector in the given order.
Failed:15. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a border color when the radio button is selected.
Failed:16. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a background color when the radio button is selected
nvm i tweaked it a bit and it worked i solved em all
the only problem is that while i passed all the tasks, it practically doesnt work. Like it doesnt work in the preview nor does it work when i load it up in my chrome from my local files. the radio buttons dissapear when i check em and my inputs dont go pink when in focus