Learn CSS Grid by Building a Magazine - Step 1

Tell us what’s happening:

Task is to create usual initial elements including meta element to ensure screen adjusts to device size.What is wrong?

Your code so far

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

<!-- User Editable Region -->

<!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>

<!-- 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/129.0.0.0 Safari/537.36 Edg/129.0.0.0

Challenge Information:

Learn CSS Grid by Building a Magazine - Step 1

put these 2 on separate lines and leave one space after the comma

Still not working,I am afraid.

i need you to copy all the code and post it in your reply so I can see if there is anything else I can suggest.

Use space after comma

  <meta charset="UTF-8"> 
  <meta name="viewport" 
  content="width=device-size,  initial-scale=1.0"/>
  <body>
  </body>
--

one space only, two is too much

Still not working.And yes I tried resetting the browser/refreshing the page

Can you copy all the code (every single line) and post it in your reply again?

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

you need to move the </head> tag below the 2 meta tags.
Then you need to fix your width=device-size to width=device-width
and put the 2nd meta tag on a single line (don’t split it up like you have)

1 Like

Hey Buddy, Here kinldy do put this line of code in proper indentation.