# Bug help - extra spaces in html?!

**URL:** <https://forum.code.org/t/bug-help-extra-spaces-in-html/38562>\
**Category:** CS Discoveries\
**Tags:** csd-unit-2\
**Created:** [October 24, 2023, 11:26pm UTC](https://forum.code.org/t/bug-help-extra-spaces-in-html/38562 "2023-10-24T23:26:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GordonBrune](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/gordonbrune/32/4752_2.png) [@GordonBrune](https://forum.code.org/u/GordonBrune)\
**Post date:** [October 24, 2023, 11:26pm UTC](https://forum.code.org/t/bug-help-extra-spaces-in-html/38562/1 "2023-10-24T23:26:54Z")

</div>

What is going on with this student’s page!?  
[https://codeprojects.org/projects/weblab/SRZhYj69GHPBWt7VImySW6qEicPHb\_SnPXmhe3f5\_pA](https://codeprojects.org/projects/weblab/SRZhYj69GHPBWt7VImySW6qEicPHb_SnPXmhe3f5_pA)  
We can’t figure out why there is all the extra space beginning at line 17.  
And we can’t find any closing tags, etc that could be missing.

---

<div class="post-metadata">

**Author:** ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)\
**Post date:** [October 25, 2023, 4:09am UTC](https://forum.code.org/t/bug-help-extra-spaces-in-html/38562/2 "2023-10-25T04:09:10Z")

</div>

well that’s because your closing tags weren’t the issue it was a missing quote for an alt attribute on an image which then messed up future formatting beyond the scope of your project

```auto
<img src="przewalskiswildhorse.jpg" alt="Przewalskis horse"></img>

```

this is the line i believe to only be causing you issues if you have any other issues feel free to look at my [Working Demo](https://studio.code.org/projects/weblab/9tV7fMQi--IYn56WqqUiEtQZ0xH8AWCTI1WPYEeJ77E/view) here

---

<div class="post-metadata">

**Author:** ![GordonBrune](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/gordonbrune/32/4752_2.png) [@GordonBrune](https://forum.code.org/u/GordonBrune)\
**Post date:** [October 25, 2023, 11:19am UTC](https://forum.code.org/t/bug-help-extra-spaces-in-html/38562/3 "2023-10-25T11:19:21Z")

</div>

Argh! We did not see that. Thanks so much!

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [October 26, 2023, 6:04am UTC](https://forum.code.org/t/bug-help-extra-spaces-in-html/38562/4 "2023-10-26T06:04:32Z")

</div>

@GordonBrune ,

I’m a little late to the game here and maybe you already fixed it, because when I open it, I don’t see any missing quotes, but I do see that the [code.org](http://code.org) editor is throwing pink error text at your double quotes which is not exactly accurate as they are correct so not sure if there is an error in the editor code or if it’s the closing `</img>` tags that are triggering that.

In older versions of html, the closing `</img>` tag may have been required, but it’s not a thing anymore and img tags are considered self-closing and using a closing `</img>` tag is now strongly discouraged and doesn’t correctly validate when you run it through a validation tool.

I was able to get the pink error text to go away by using single quote marks, but double quote marks are just as valid.

Good luck as usual!

Mike
