# Possible bug in HTML editor

**URL:** <https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [June 1, 2022, 4:16am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575 "2022-06-01T04:16:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![valabojubharath](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@valabojubharath](https://forum.freecodecamp.org/u/valabojubharath)\
**Post date:** [June 1, 2022, 4:16am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/1 "2022-06-01T04:16:37Z")

</div>

I have noticed that using a space between the attribute and equals sign causes an error.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/8/6/b/86b27f519fec0eba21eaef1378172b5af13c2fa1.png)

But the error is fixed when the space is removed

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/5/f/e/5fe4886d2755dca83509196781708bacebf41251.png)

---

<div class="post-metadata">

**Author:** ![Killrun](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/killrun/32/246343_2.png) [@Killrun](https://forum.freecodecamp.org/u/Killrun)\
**Post date:** [June 1, 2022, 4:46am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/3 "2022-06-01T04:46:08Z")

</div>

Try to remove all the space in type and href as well in link element.

---

<div class="post-metadata">

**Author:** ![valabojubharath](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@valabojubharath](https://forum.freecodecamp.org/u/valabojubharath)\
**Post date:** [June 4, 2022, 4:57am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/4 "2022-06-04T04:57:05Z")

</div>

Yes, but the thing is it shouldn’t matter if there is a space or not. It’s still correct syntax if I’m not wrong. So this is a possible issue.

---

<div class="post-metadata">

**Author:** ![colinthornton](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/colinthornton/32/62129_2.png) [@colinthornton](https://forum.freecodecamp.org/u/colinthornton)\
**Post date:** [June 4, 2022, 5:05am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/5 "2022-06-04T05:05:23Z")

</div>

While it may be syntactically allowed, it’s convention to have no space between the equals sign. Following standard formatting conventions makes your code easier to read.

---

<div class="post-metadata">

**Author:** ![valabojubharath](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@valabojubharath](https://forum.freecodecamp.org/u/valabojubharath)\
**Post date:** [June 4, 2022, 6:28am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/6 "2022-06-04T06:28:51Z")

</div>

Although I agree with your explanation, I’m reopening this discussion because I just went through freecodecamp’s GitHub and the general attitude there was “any valid syntax must be allowed to pass”, which means that the tests not passing due to the presence of space is unexpected/ undesired behavior.

---

<div class="post-metadata">

**Author:** ![colinthornton](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/colinthornton/32/62129_2.png) [@colinthornton](https://forum.freecodecamp.org/u/colinthornton)\
**Post date:** [June 4, 2022, 7:26am UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/7 "2022-06-04T07:26:32Z")

</div>

Here’s the source file if you’d like to file an issue.

> <https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3477cb2e27333b1ab2b955.md>

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [December 3, 2022, 7:27pm UTC](https://forum.freecodecamp.org/t/possible-bug-in-html-editor/513575/8 "2022-12-03T19:27:29Z")

</div>

Closed on December 3, 2022, 7:27pm UTC

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