Learn Accessibility by Building a Quiz - Step 67

Tell us what’s happening: * {
prefers-reduced-motion: smooth;

@media (prefers-reduced-motion: no-preference) {

I have challenge advancing this stage. I need help please.
Your code so far


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn Accessibility by Building a Quiz - Step 67

Link to the challenge:

* {
 scroll-behavior: smooth;


Hi, you have to put this code inside the media rule. Reset and try it again

I don’t understand your explanation.

hi there, can you ask me a more specific question?
For eg. I used 2 sentences in my explanation. Which one was the confusing one?

Happy new year Sir. I have been stuck in this No. 67 for sometimes now. How do I apply the @media (prefers-reduced-motion) rule?

Just type it exactly as given to you.

this is what I did…

  • {scroll-behavior: smooth;
    @media(prefers-reduced-motion: no preference);
    And this is the error message I’m getting;
    “You should have one @media(prefers-reduced-motion: no preference)” rule

The @media rule should be the outer rule. (You have it in reverse)

Again, I did this…
@media (prefers-reduced-motion: no-preference) {scroll-behavior: smooth;
and the response I got is this…
You should have one @media (prefers-reduced-motion: no-preference) rule.

You deleted the asterisk that was there at the start? (Plus also you deleted some parenthesis that were given to you)
However the idea is correct now.

Try to reset and add your code without deleting anything

I did this…
*@media(prefers-reduced-motion: no-preference) {
scroll-behavior: smooth;
I’m still getting " You should have one @media(prefers-reduced-motion: no preference) rule

This should be within the media query.

No such thing as this

I did this…
@media(prefers-reduced-motion: no-preference) *{
scroll-behavior: smooth;}
And it’s not still working.

You have just written this , css selection is such:



I did this now…
@media {prefers-reduced-motion: no-preference;}
*{scroll-behavior: smooth;}

And it still didn’t work.

This should be within

Like this target{ target2{} }

I did this…
@media{prefers-reduced-motion: no-preference
*{scroll-behavior: smooth;}
It still didn’t work.

Don’t change the above.

prefers-reduced-motion: no-preference is not in side the curly bracket

1 Like

Thanks a bunch. I just got it right.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.