# DO you ever fix something by just closing tags

**URL:** <https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846>\
**Category:** General\
**Created:** [July 18, 2017, 6:40am UTC](https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846 "2017-07-18T06:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdbrown8](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jdbrown8](https://forum.freecodecamp.org/u/jdbrown8)\
**Post date:** [July 18, 2017, 6:40am UTC](https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846/1 "2017-07-18T06:40:32Z")

</div>

closing tags usually fixxes my problem and it was also the fix here!

---

<div class="post-metadata">

**Author:** ![coymeetsworld](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/coymeetsworld/32/72953_2.png) [@coymeetsworld](https://forum.freecodecamp.org/u/coymeetsworld)\
**Post date:** [July 18, 2017, 9:28am UTC](https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846/2 "2017-07-18T09:28:28Z")

</div>

> [@jdbrown8](#):
>
> closing tags usually fixxes my problem and it was also the fix here!

A good idea when writing HTML is if the tag you’re writing has a separate closing tag, write it immediately after creating the opening tag. Also, indenting nested tags will make your code more readable and easier to spot errors.

This:

```auto
<div class="row">
<div class="col-xs-6">
<div class="well">
</div>
</div>
<div class="col-xs-6">
<div class="well">
</div>
</div>

```

Is much harder to read and find the missing closing div tag than this:

```auto
<div class="row">
  <div class="col-xs-6">
    <div class="well">
    </div>
  </div>
  <div class="col-xs-6">
    <div class="well">
    <!-- missing closing div for well here -->
  </div>
</div>

```

---

<div class="post-metadata">

**Author:** ![lionel-rowe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lionel-rowe/32/41877_2.png) [@lionel-rowe](https://forum.freecodecamp.org/u/lionel-rowe)\
**Post date:** [July 18, 2017, 11:52am UTC](https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846/3 "2017-07-18T11:52:37Z")

</div>

Using a good text editor will help a lot too. You get syntax highlighting, automatic indentation, and highlighting of the other corresponding tag to help out. Some text editors go even further and automatically add a closing tag as soon as you finish typing an opening one.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:47pm UTC](https://forum.freecodecamp.org/t/do-you-ever-fix-something-by-just-closing-tags/136846/4 "2021-01-17T20:47:51Z")

</div>

Closed on January 17, 2021, 8:47pm UTC


