Learn CSS Flexbox by Building a Photo Gallery - Step 2

hello guys, please I need your help i am finding it difficult to correctly state my meta tags please help me.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
   <meta charset="UTF-8"/>
   <meta name="viewport", content="width=device-width", initial-scale="1.0"/> 
/* 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/ Safari/537.36

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

Link to the challenge:

remember that name and content are HTML attributes
So you need to treat them the same exact way as charset for example.
That is, attribute=“value”
and when using multiple attributes, you separate them with space not comma

thanks alot but i just tried it and it still didnt work

what did you try this time (remember we cannot see your code till you share it here)

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

I’ve edited your code for readability. 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 (').

there is no ‘initial-scale’ attribute

there is a content attribute whose value should be this
width=device-width, initial-scale=1

there is an initial-scale attribute

here are the instructions

Within your head element, add a meta tag with the name set to viewport and the content set to width=device-width, initial-scale=1.

notice that they said “content set to”

content is an attribute but, nothing else following that word in that sentence is an attribute

thanks alot!!! now i understand and get it God bless!

1 Like

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