IDK what´s the problem here
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photo Gallery</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="header">
<h1>css flexbox photo gallery</h1>
</div>
</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/107.0.0.0 Safari/537.36
Challenge: Learn CSS Flexbox by Building a Photo Gallery - Step 4
Link to the challenge:
it says
You should have a header
element within your body
element.
hbar1st
November 21, 2022, 4:55pm
4
so how about making a header element?
recall a header element is <header></header>
its also wrong , the hint says
Your header
element should have an h1
element inside it.
this is the code so far
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photo Gallery</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<header>
<h1>css flexbox photo gallery</h1>
</header>
</body>
</html>
hbar1st
November 21, 2022, 5:22pm
7
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
November 21, 2022, 5:23pm
8
Pls reread the exercise.
The header element is missing its class.
system
Closed
May 23, 2023, 5:23am
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.