Learn CSS Flexbox by Building a Photo Gallery - Step 2

Hi there, I am not sure what I am doing wrong here - I am getting this error message and hint but I have already done so. With thanks in advance

Test

Sorry, your code does not pass. Hang in there.

Hint

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


<!-- file: index.html -->

<!-- User Editable Region -->

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

  </head>
  <body>
  </body>
</html>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

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

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

Link to the challenge:

meta element is a self closing tag, you can remove the closing tag

Thanks, I tried that but the same error message pops up

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

  </head>
  <body>
  </body>
</html>

Your content value is not the same as the instruction ask you to do.

This is the step

set to width=device-width,

1 Like

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