Problem with Responsive Web Design (Beta)

I can’t submit this step and can’t complete the track says" You should give the meta a content attribute of width=device-width, initial-scale=1"
and I made it right!

Hi @miom5334 !

Welcome to the forum!

It would help to see your code.
Please write it in the forum here so we can see what is going on.
Thanks! :slight_smile:

I just tested in out on my end and it passes.

Thank you so much for your help.

EDIT: Ok, I found the issue. My guess is that test is checking for “initial-scale=1 .0” and the hint gives "initial-scale=1"

I have the same issue, tests are not passed although it contains everything that is asked.

Making it self closing also did not change anything.

I have wrote it manually, copied from elsewhere, while restarting the code and still nothing.

I think I know why it isn’t working, it should be head and not body in the second selector.

assert.equal(document.querySelectorAll('head > meta[content="width=device-width, initial-scale=1.0"]')?.length || document.querySelectorAll('body > meta[content="width=device-width, initial-scale=1"]')?.length, 1);

The tests.

Edit: FYI, I opened an issue and made a PR for this.

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