Learn Basic CSS by Building a Cafe Menu - Step 3

It shows your code does not pass because there is no charset attribute in your meta tag…but there is a charset in meta

Your code so far

<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta charset = 'utf-8'>
    <title>Cafe Menu</title>
  </head>

<!-- User Editable Region -->

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 3

Welcome to the community @adesh8763

There appears to be spaces that are not needed
charset="value"

I hope this helps you

2 Likes

Thank you Gray, This works

1 Like

Happy to help you keep the good progress and move on to the next step @adesh8763 !

Happy coding!

1 Like

Welcome there,

Thank you for opening this post.

It is valid HTML to have whitespace between attribute names (e.g. charset) and their equal signs. This is a bug in our tests.

I have opened a fix for this: fix(curriculum): allow whitespace in attr declarations by ShaunSHamilton · Pull Request #52399 · freeCodeCamp/freeCodeCamp · GitHub

1 Like

@anon42932716 No worries. I am constantly having to remind myself what is valid syntax in HTML.

1 Like

No worries @anon42932716

Both ways work.

The spec is:

The attribute name, followed by zero or more ASCII whitespace, followed by a single U+003D EQUALS SIGN character, followed by zero or more ASCII whitespace, followed by a single U+0022 QUOTATION MARK character (“), followed by the attribute value …, and finally followed by a second single U+0022 QUOTATION MARK character (”).

Note: Both ' and " are valid (I just did not quote both paragraphs

I think both ways will work

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