Learn CSS Flexbox by Building a Photo Gallery - Step 3

Tell us what’s happening:
the link tag in the head is correct but still not accepted.
Your code so far

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

<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Photo Gallery</title>
    <link href ="styles.css" rel = "stylesheet" />
  </head>
  <body>
  </body>
</html>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51

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

Link to the challenge:

the spaces are wrong. to give an attribute a value it should be without space like:

href="styles.css"

Although it should and would work in a browser with a “normal” HTML file, when testing we often have to use regex and they are often not as lenient as the browser.

The regex in the test is not expecting a space.

https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537bb9b1a29430ac15ad38.md

From a code formatting perspective, the space is also not something you want.

1 Like

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