Learn CSS Flexbox by Building a Photo Gallery - Step 1

Hi,

I’m not sure why my code won’t pass, any hints would be greatly appreciated.

Step 1

Begin with your standard HTML boilerplate. Add a DOCTYPE declaration, an html element, a head element, and a body element.

Add the lang attribute to the opening <html> tag with en set as the value.

My hint is: Your html element should have a closing tag.

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

<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en">
  <head>
    <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/109.0.0.0 Safari/537.36

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

Link to the challenge:

Your html/body/head elements are all missing the closing tags.

1 Like

Thanks so much, I have fixed it. Seems so simple now. Thanks for your help!

1 Like

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