HTML CSS, step 18, not able to see entire example


Not sure what exactly I’m doing wrong here. My phone would not let me view the entirety of the instructions above, esp. The code part. If someone could help out I would very much appreciate it.

You need the instructions ?
These are the instructions given:

Step 18

For the styling of the page to look similar on mobile as it does on a desktop or laptop, you need to add a meta element with a special content attribute.

Add the following within the head element:

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

But you seem to have already added the second <meta> tho .

Yeah, I did try to add it. I had to play around with the instructions quite a lot, and this is what it told me when I triedto submit it…


This is how I got the remainder of the instructions, but it’s still telling me the same thing.

Posting the code will help find the problem. It’s hard to find it through screenshots.

I’m not sure that I understand what you’re trying to say. Maybe I should have mentioned that it kept saying this same thing even after trying to fix it and posting it again. But do you think you could elaborate more?

1 Like

Can you post your code?

Like this? :

    <meta name="viewport" content="width=device-width,initial-scale=1.0" />

This is what I posted and it’s still saying that it’s wrong.

I still have not resolved the step if anyone can help.

the last code you posted, you are missing a space

it should be

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

with a space after the comma

Perfect! That worked. On my screen it looks like it just goes to the next line so I didn’t realize there was enough space between. Thank you!

I also had the same issue with the “example” part of the code being cut off and unreadable. I finally saw the whole thing only after I had submitted the “wrong” answer several times.
I am using an apple iPad 6 and this is what the instructions say: “Add code : <meta name=“viewport” content=“width=device-width, …” then it gets cut off after that and I cannot pan over to see the rest of the code to be entered, thus the reason why I am given an error message when I submit it. This is a technical issue not a user issue. Please look into it and fix for the next coders. Thanx.

1 Like
so I typed the above code as i ave in editor and cant get it......help a 50 plus newbie please. ChefDrew

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.