Alex77
October 19, 2022, 9:50pm
1
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">
<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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Challenge: Learn CSS Flexbox by Building a Photo Gallery - Step 2
Link to the challenge:
hbar1st
October 19, 2022, 10:43pm
2
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
Alex77
October 19, 2022, 10:57pm
3
thanks alot but i just tried it and it still didnt work
hbar1st
October 19, 2022, 10:59pm
4
what did you try this time (remember we cannot see your code till you share it here)
Alex77
October 19, 2022, 11:00pm
5
<!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>
hbar1st
October 19, 2022, 11:01pm
6
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 (').
hbar1st
October 19, 2022, 11:02pm
7
Alex77:
initial-scale="1.0
there is no ‘initial-scale’ attribute
there is a content attribute whose value should be this
width=device-width, initial-scale=1
Alex77
October 19, 2022, 11:07pm
8
there is an initial-scale attribute
hbar1st
October 19, 2022, 11:10pm
9
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
Alex77
October 19, 2022, 11:14pm
10
thanks alot!!! now i understand and get it God bless!
1 Like
system
Closed
April 20, 2023, 11:15am
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.