Learn CSS Flexbox by Building a Photo Gallery - Step 2

Tell us what’s happening:
Describe your issue in detail here.
What am i doing wrong?

Test

Sorry, your code does not pass. You’re getting there.

Hint

One meta element should have a name set to viewport, and content set to width=device-width, initial-scale=1.0.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8"
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

  </head>
  <body>
  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Learn CSS Flexbox by Building a Photo Gallery - Step 2

Link to the challenge:

You are missing the closing bracket >

i have the closing bracket
now it keeps saying

You should have two meta elements.

Can you post the latest code for confirmation?

Can you post all the for pls for confirmation?

I can’t test your code if you don’t post it.

Here are instructions on how to do it.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

here you go

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta charset="UTF-8">
    </head>
    <body>

    </body>
</html>

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL-F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

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