Learn CSS Flexbox by Building a Photo Gallery - Step 1

Tell us what’s happening:

I did write the code correctly, but it’s keeps asking me your html should have a closing tag what does it mean.

Your code so far

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

<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en">
  <head>
  </head>
  <body>
  </body>

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

Challenge Information:

Learn CSS Flexbox by Building a Photo Gallery - Step 1

Every html element should have an opening tag and a closing tag. Your <html> is missing the matching closing tag </html>

2 Likes

almost there, the head and the body should be inside of the HTML tag, after the closed tag body
you must close the tag html

1 Like

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