Learn Basic CSS by Building a Cafe Menu - Step 3

Tell us what’s happening:
I can’t figure out the mistake.

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->


Your browser information:

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

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 3

Link to the challenge:

The tests apparently don’t like the spaces around the equals sign, so get rid of them.

In HTML, spaces are usually not added around the equals sign for attributes. I would recommend that you don’t add them or you may upset the tests.

Hello, Html has a lot of rules because it is somewhat strict, all you do here is take out the spaces for example just look at an Html boilerplate and compare.

I lot of people would argue that HTML is too lenient :slightly_smiling_face:

But there is no actual rule in HTML that says you can’t have spaces around the equals sign on attributes. It’s definitely a best practice not to, but it’s not a strict rule.

Yes I agree and its also fairly simple, I guess strict is a term used mostly for programming language. :+1:

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